From d6cc6600d0e69d7ca84064e4ea94e89055a83a42 Mon Sep 17 00:00:00 2001 From: Cédric Cabessa Date: Fri, 29 Dec 2017 18:03:02 +0100 Subject: 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). --- sway/handlers.c | 6 ++++-- 1 file 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: -- cgit v1.2.3-54-g00ecf