mirror of
https://github.com/swaywm/sway.git
synced 2024-11-26 09:51:29 +00:00
use seat directly
This commit is contained in:
parent
e2bb5799af
commit
be7707874a
|
@ -1467,8 +1467,7 @@ struct wlr_surface *seat_get_focused_surface(struct sway_seat *seat) {
|
||||||
if (focus && node_is_view(focus)) {
|
if (focus && node_is_view(focus)) {
|
||||||
return focus->sway_container->view->surface;
|
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 = seat->focused_layer;
|
||||||
struct wlr_layer_surface_v1 *layer = current->seat->focused_layer;
|
|
||||||
if (layer && layer->surface)
|
if (layer && layer->surface)
|
||||||
return layer->surface;
|
return layer->surface;
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in a new issue