mirror of
https://github.com/swaywm/sway.git
synced 2025-11-20 06:59:46 -05:00
Implement input-inhibit in sway, swaylock
This commit is contained in:
parent
06fbd51ff5
commit
b7e7794912
8 changed files with 160 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue