aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorFerdinand Schober <ferdinand.schober@fau.de>2022-10-06 12:18:38 +0200
committerSimon Ser <contact@emersion.fr>2022-10-09 10:07:51 +0200
commitbe7707874ac5e08d7ecc1af613bedbbea41529ca (patch)
tree81344c881f038e87874551dd819887ae3e495eea /sway
parente2bb5799af77d2b6169a66fcb942c16b08078e93 (diff)
use seat directly
Diffstat (limited to 'sway')
-rw-r--r--sway/input/seat.c3
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) {
if (focus && node_is_view(focus)) {
return focus->sway_container->view->surface;
}
- struct sway_seat_node *current = wl_container_of(seat->focus_stack.next, current, link);
- struct wlr_layer_surface_v1 *layer = current->seat->focused_layer;
+ struct wlr_layer_surface_v1 *layer = seat->focused_layer;
if (layer && layer->surface)
return layer->surface;
return NULL;