diff options
| author | Cédric Cabessa <ced@ryick.net> | 2017-12-29 18:03:02 +0100 |
|---|---|---|
| committer | Cédric Cabessa <ced@ryick.net> | 2017-12-29 18:03:02 +0100 |
| commit | d6cc6600d0e69d7ca84064e4ea94e89055a83a42 (patch) | |
| tree | ac05a0b7e47e4291b3d4eebb6a378317e5831c9a | |
| parent | c08c805ecd8f2000a35cdeae7b16244d0b3c0528 (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.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) { // 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: |
