summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2017-12-29 18:03:02 +0100
committerFurkan Sahin <furkan-dev@proton.me>2017-12-29 18:03:02 +0100
commit3ee4fd5f609e628acde87da05c1a421e50b6261c (patch)
treeac05a0b7e47e4291b3d4eebb6a378317e5831c9a
parent7b692f06de1951ac3c00d955f847cd1cdea2ba33 (diff)
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.c6
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) {
// Modals, get focus, popups do not
case WLC_BIT_MODAL:
- wlc_view_focus(handle);
- wlc_view_bring_to_front(handle);
+ if (!desktop_shell.is_locked) {
+ wlc_view_focus(handle);
+ wlc_view_bring_to_front(handle);
+ }
newview = new_floating_view(handle);
/* fallthrough */
case WLC_BIT_POPUP: