summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2017-12-29 13:55:38 -0500
committerLibravatar GitHub <noreply@github.com>2017-12-29 13:55:38 -0500
commitd85ad05fa857cd7d7af2c8e2c33616d7895e1955 (patch)
treeac05a0b7e47e4291b3d4eebb6a378317e5831c9a
parentAdaptions for API change in json-c v0.13 (diff)
parentpartial fix #1056 (diff)
downloadsway-d85ad05fa857cd7d7af2c8e2c33616d7895e1955.tar.gz
sway-d85ad05fa857cd7d7af2c8e2c33616d7895e1955.tar.zst
sway-d85ad05fa857cd7d7af2c8e2c33616d7895e1955.zip
Merge pull request #1544 from CedricCabessa/fix1056-swaylock-allow-popup-to-come-through
partial fix #1056
-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) {
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: