diff options
-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: |