Implement input-inhibit in sway, swaylock

This commit is contained in:
Drew DeVault 2018-04-03 17:03:29 -04:00
parent 06fbd51ff5
commit b7e7794912
8 changed files with 160 additions and 11 deletions

View file

@ -32,6 +32,9 @@ struct sway_seat {
// If the focused layer is set, views cannot receive keyboard focus
struct wlr_layer_surface *focused_layer;
// If exclusive_client is set, no other clients will receive input events
struct wl_client *exclusive_client;
struct wl_listener focus_destroy;
struct wl_listener new_container;
@ -88,4 +91,6 @@ void seat_apply_config(struct sway_seat *seat, struct seat_config *seat_config);
struct seat_config *seat_get_config(struct sway_seat *seat);
bool seat_allow_input(struct sway_seat *seat, struct wlr_surface *surface);
#endif

View file

@ -33,6 +33,7 @@ struct swaylock_state {
struct wl_display *display;
struct wl_compositor *compositor;
struct zwlr_layer_shell_v1 *layer_shell;
struct zwlr_input_inhibit_manager_v1 *input_inhibit_manager;
struct wl_shm *shm;
struct wl_list surfaces;
struct swaylock_args args;