Revert "Deduplicate some state"

I changed my mind, it's cleaner to keep things like this and will be
consistent with views.
This commit is contained in:
Isaac Freund
2020-04-26 01:59:54 +02:00
parent 5baa9f58e7
commit f133d0b391
3 changed files with 11 additions and 7 deletions

View File

@ -268,7 +268,7 @@ pub const Output = struct {
while (it) |node| : (it = node.prev) {
const layer_surface = &node.data;
// Only mapped surfaces may gain focus
if (layer_surface.wlr_layer_surface.mapped and
if (layer_surface.mapped and
layer_surface.wlr_layer_surface.current.keyboard_interactive)
{
break :outer layer_surface;