diff options
author | 2017-12-29 18:03:02 +0100 | |
---|---|---|
committer | 2017-12-29 18:03:02 +0100 | |
commit | d6cc6600d0e69d7ca84064e4ea94e89055a83a42 (patch) | |
tree | ac05a0b7e47e4291b3d4eebb6a378317e5831c9a | |
parent | Adaptions for API change in json-c v0.13 (diff) | |
download | sway-d6cc6600d0e69d7ca84064e4ea94e89055a83a42.tar.gz sway-d6cc6600d0e69d7ca84064e4ea94e89055a83a42.tar.zst sway-d6cc6600d0e69d7ca84064e4ea94e89055a83a42.zip |
partial fix #1056
this patch allow the user to type its password when a modal window is shown
while the desktop is locked by swaylock.
It is a partial fix of the bug since the window should be visible (see bug
https://github.com/swaywm/sway/issues/1056 for details).
-rw-r--r-- | sway/handlers.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index 33e75d6b..f4d447eb 100644 --- a/sway/handlers.c +++ b/sway/handlers.c | |||
@@ -449,8 +449,10 @@ static bool handle_view_created(wlc_handle handle) { | |||
449 | 449 | ||
450 | // Modals, get focus, popups do not | 450 | // Modals, get focus, popups do not |
451 | case WLC_BIT_MODAL: | 451 | case WLC_BIT_MODAL: |
452 | wlc_view_focus(handle); | 452 | if (!desktop_shell.is_locked) { |
453 | wlc_view_bring_to_front(handle); | 453 | wlc_view_focus(handle); |
454 | wlc_view_bring_to_front(handle); | ||
455 | } | ||
454 | newview = new_floating_view(handle); | 456 | newview = new_floating_view(handle); |
455 | /* fallthrough */ | 457 | /* fallthrough */ |
456 | case WLC_BIT_POPUP: | 458 | case WLC_BIT_POPUP: |