]> git.mdlowis.com Git - proto/labwc.git/commitdiff
seat: remove unecessary top/overlay check in seat_set_focus_layer()
authorJohan Malm <jgm323@gmail.com>
Sat, 9 Mar 2024 10:33:34 +0000 (10:33 +0000)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sun, 17 Mar 2024 21:18:47 +0000 (21:18 +0000)
Such checks should be made prior to calling the function (which they
are).

src/seat.c

index 53861edc1908300cdd4f4f556f09f10e29a8fe27..8da507e7e2d11fafd799377283efe7217c1d9891 100644 (file)
@@ -672,9 +672,7 @@ seat_set_focus_layer(struct seat *seat, struct wlr_layer_surface_v1 *layer)
                return;
        }
        seat_focus(seat, layer->surface, /*is_lock_surface*/ false);
-       if (layer->current.layer >= ZWLR_LAYER_SHELL_V1_LAYER_TOP) {
-               seat->focused_layer = layer;
-       }
+       seat->focused_layer = layer;
 }
 
 static void