diff options
-rw-r--r-- | sway/input/seat.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index 6abb54e8..5b5741d1 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c | |||
@@ -1467,8 +1467,7 @@ struct wlr_surface *seat_get_focused_surface(struct sway_seat *seat) { | |||
1467 | if (focus && node_is_view(focus)) { | 1467 | if (focus && node_is_view(focus)) { |
1468 | return focus->sway_container->view->surface; | 1468 | return focus->sway_container->view->surface; |
1469 | } | 1469 | } |
1470 | struct sway_seat_node *current = wl_container_of(seat->focus_stack.next, current, link); | 1470 | struct wlr_layer_surface_v1 *layer = seat->focused_layer; |
1471 | struct wlr_layer_surface_v1 *layer = current->seat->focused_layer; | ||
1472 | if (layer && layer->surface) | 1471 | if (layer && layer->surface) |
1473 | return layer->surface; | 1472 | return layer->surface; |
1474 | return NULL; | 1473 | return NULL; |