Merge pull request #1544 from CedricCabessa/fix1056-swaylock-allow-popup-to-come-through

partial fix #1056
This commit is contained in:
Drew DeVault 2017-12-29 13:55:38 -05:00 committed by GitHub
commit d85ad05fa8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: