diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-03 16:16:42 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-04-04 18:47:48 -0400 |
commit | 06fbd51ff5563f548599615a6baf5a1854bf9983 (patch) | |
tree | c1890f3554621ad8f1d44a054e88f72f065644ee /include | |
parent | Refocus the last focused container on lock exit (diff) | |
download | sway-06fbd51ff5563f548599615a6baf5a1854bf9983.tar.gz sway-06fbd51ff5563f548599615a6baf5a1854bf9983.tar.zst sway-06fbd51ff5563f548599615a6baf5a1854bf9983.zip |
Add input inhibitor to input manager
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/input/input-manager.h | 5 | ||||
-rw-r--r-- | include/sway/input/seat.h | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/sway/input/input-manager.h b/include/sway/input/input-manager.h index 8e39a4a7..89a3ac71 100644 --- a/include/sway/input/input-manager.h +++ b/include/sway/input/input-manager.h | |||
@@ -1,6 +1,7 @@ | |||
1 | #ifndef _SWAY_INPUT_INPUT_MANAGER_H | 1 | #ifndef _SWAY_INPUT_INPUT_MANAGER_H |
2 | #define _SWAY_INPUT_INPUT_MANAGER_H | 2 | #define _SWAY_INPUT_INPUT_MANAGER_H |
3 | #include <libinput.h> | 3 | #include <libinput.h> |
4 | #include <wlr/types/wlr_input_inhibitor.h> | ||
4 | #include "sway/server.h" | 5 | #include "sway/server.h" |
5 | #include "sway/config.h" | 6 | #include "sway/config.h" |
6 | #include "list.h" | 7 | #include "list.h" |
@@ -23,7 +24,11 @@ struct sway_input_manager { | |||
23 | struct wl_list devices; | 24 | struct wl_list devices; |
24 | struct wl_list seats; | 25 | struct wl_list seats; |
25 | 26 | ||
27 | struct wlr_input_inhibit_manager *inhibit; | ||
28 | |||
26 | struct wl_listener new_input; | 29 | struct wl_listener new_input; |
30 | struct wl_listener inhibit_activate; | ||
31 | struct wl_listener inhibit_deactivate; | ||
27 | }; | 32 | }; |
28 | 33 | ||
29 | struct sway_input_manager *input_manager_create(struct sway_server *server); | 34 | struct sway_input_manager *input_manager_create(struct sway_server *server); |
diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h index 137fcd22..53031d70 100644 --- a/include/sway/input/seat.h +++ b/include/sway/input/seat.h | |||
@@ -64,6 +64,9 @@ void seat_set_focus_warp(struct sway_seat *seat, | |||
64 | void seat_set_focus_layer(struct sway_seat *seat, | 64 | void seat_set_focus_layer(struct sway_seat *seat, |
65 | struct wlr_layer_surface *layer); | 65 | struct wlr_layer_surface *layer); |
66 | 66 | ||
67 | void seat_set_exclusive_client(struct sway_seat *seat, | ||
68 | struct wl_client *client); | ||
69 | |||
67 | struct sway_container *seat_get_focus(struct sway_seat *seat); | 70 | struct sway_container *seat_get_focus(struct sway_seat *seat); |
68 | 71 | ||
69 | /** | 72 | /** |