aboutsummaryrefslogtreecommitdiff
path: root/sway/input/seat.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r--sway/input/seat.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
index 5b5741d1..b21e1b86 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -1462,17 +1462,6 @@ struct sway_node *seat_get_focus(struct sway_seat *seat) {
return current->node;
}
-struct wlr_surface *seat_get_focused_surface(struct sway_seat *seat) {
- struct sway_node *focus = seat_get_focus(seat);
- if (focus && node_is_view(focus)) {
- return focus->sway_container->view->surface;
- }
- struct wlr_layer_surface_v1 *layer = seat->focused_layer;
- if (layer && layer->surface)
- return layer->surface;
- return NULL;
-}
-
struct sway_workspace *seat_get_focused_workspace(struct sway_seat *seat) {
struct sway_node *focus = seat_get_focus_inactive(seat, &root->node);
if (!focus) {