[PATCH] shell: Don't try to switch to a NULL shell surface.
Rafael Antognolli
rafael.antognolli at intel.com
Thu Dec 5 13:01:21 PST 2013
Fixes the crash from alt+tab when there's a fullscreen surface.
---
desktop-shell/shell.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c
index 0b6a97c..18b88f4 100644
--- a/desktop-shell/shell.c
+++ b/desktop-shell/shell.c
@@ -5174,6 +5174,8 @@ switcher_next(struct switcher *switcher)
wl_list_for_each(view, &ws->layer.view_list, layer_link) {
shsurf = get_shell_surface(view->surface);
+ if (!shsurf)
+ break;
switch (shsurf->type) {
case SHELL_SURFACE_TOPLEVEL:
if (shsurf->parent)
--
1.8.3.1
More information about the wayland-devel
mailing list