diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2016-03-04 17:10:43 +0100 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2016-03-04 17:10:43 +0100 |
| commit | d2cb257e658acef0c8eddb78bdbc16234e6aa554 (patch) | |
| tree | 6e487ac7e6bd587c27d062e68c80b5eb225a7013 | |
| parent | 2298a1ef29cb8e0012421af00c71b96c9a483ecd (diff) | |
Reset input state when locking compositor
Fix #498
| -rw-r--r-- | sway/extensions.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/extensions.c b/sway/extensions.c index bd279276..2d17292a 100644 --- a/sway/extensions.c +++ b/sway/extensions.c @@ -5,6 +5,7 @@ #include "wayland-swaylock-server-protocol.h" #include "layout.h" #include "log.h" +#include "input_state.h" #include "extensions.h" struct desktop_shell_state desktop_shell; @@ -123,6 +124,8 @@ static void set_lock_surface(struct wl_client *client, struct wl_resource *resou wlc_view_set_state(view->handle, WLC_BIT_FULLSCREEN, true); workspace->fullscreen = view; desktop_shell.is_locked = true; + // reset input state + input_init(); set_focused_container(view); arrange_windows(workspace, -1, -1); list_add(desktop_shell.lock_surfaces, surface); |
