aboutsummaryrefslogtreecommitdiff
path: root/include/sway/input
diff options
context:
space:
mode:
authorDaniel De Graaf <code@danieldg.net>2022-03-08 21:14:26 -0500
committerSimon Ser <contact@emersion.fr>2022-04-29 09:06:36 +0200
commit519038a7e903caae731007b276f5666a341498e9 (patch)
treeb62cb6728503c5e0940c08bb8cb30b81aab9e830 /include/sway/input
parent70d30ac72b93c19813f6574025fb4723845ed6a4 (diff)
Implement ext-session-lock-v1
Diffstat (limited to 'include/sway/input')
-rw-r--r--include/sway/input/seat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h
index 50c4be9b..47726159 100644
--- a/include/sway/input/seat.h
+++ b/include/sway/input/seat.h
@@ -185,6 +185,10 @@ struct sway_workspace *seat_get_last_known_workspace(struct sway_seat *seat);
struct sway_container *seat_get_focused_container(struct sway_seat *seat);
+// Force focus to a particular surface that is not part of the workspace
+// hierarchy (used for lockscreen)
+void sway_force_focus(struct wlr_surface *surface);
+
/**
* Return the last container to be focused for the seat (or the most recently
* opened if no container has received focused) that is a child of the given