[PATCH] shell: Fix activate logic on surface map.

Rafael Antognolli rafael.antognolli at intel.com
Wed Dec 4 11:49:55 PST 2013


It should activate the newly mapped surface if not locked.
---
 desktop-shell/shell.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c
index de54e37..05d7814 100644
--- a/desktop-shell/shell.c
+++ b/desktop-shell/shell.c
@@ -4860,7 +4860,7 @@ map(struct desktop_shell *shell, struct shell_surface *shsurf,
 		if (shsurf->state.relative &&
 		    shsurf->transient.flags == WL_SHELL_SURFACE_TRANSIENT_INACTIVE)
 			break;
-		if (!shell->locked)
+		if (shell->locked)
 			break;
 		wl_list_for_each(seat, &compositor->seat_list, link)
 			activate(shell, shsurf->surface, seat);
-- 
1.8.3.1



More information about the wayland-devel mailing list