Deduplicate some state

This commit is contained in:
Isaac Freund
2020-04-25 23:28:26 +02:00
parent 96c20f26fc
commit 5baa9f58e7
3 changed files with 7 additions and 11 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.mapped and
if (layer_surface.wlr_layer_surface.mapped and
layer_surface.wlr_layer_surface.current.keyboard_interactive)
{
break :outer layer_surface;