shell: Fix activate logic on surface map.
It should activate the newly mapped surface if not locked.
This commit is contained in:
committed by
Kristian Høgsberg
parent
477333285e
commit
ba5d2d76af
@@ -4860,7 +4860,7 @@ map(struct desktop_shell *shell, struct shell_surface *shsurf,
|
|||||||
if (shsurf->state.relative &&
|
if (shsurf->state.relative &&
|
||||||
shsurf->transient.flags == WL_SHELL_SURFACE_TRANSIENT_INACTIVE)
|
shsurf->transient.flags == WL_SHELL_SURFACE_TRANSIENT_INACTIVE)
|
||||||
break;
|
break;
|
||||||
if (!shell->locked)
|
if (shell->locked)
|
||||||
break;
|
break;
|
||||||
wl_list_for_each(seat, &compositor->seat_list, link)
|
wl_list_for_each(seat, &compositor->seat_list, link)
|
||||||
activate(shell, shsurf->surface, seat);
|
activate(shell, shsurf->surface, seat);
|
||||||
|
|||||||
Reference in New Issue
Block a user