diff --git a/src/core/display-private.h b/src/core/display-private.h index d4ee5a192..ae8bb2ba6 100644 --- a/src/core/display-private.h +++ b/src/core/display-private.h @@ -264,7 +264,7 @@ struct _MetaDisplayClass gboolean meta_display_open (void); -void meta_display_manage_all_windows (MetaDisplay *display); +void meta_display_manage_all_xwindows (MetaDisplay *display); void meta_display_unmanage_windows (MetaDisplay *display, guint32 timestamp); diff --git a/src/core/display.c b/src/core/display.c index ea2dd762a..af10f7b27 100644 --- a/src/core/display.c +++ b/src/core/display.c @@ -646,7 +646,7 @@ meta_display_init_x11 (MetaDisplay *display, meta_x11_display_create_guard_window (x11_display); if (!display->display_opening) - meta_display_manage_all_windows (display); + meta_display_manage_all_xwindows (display); return TRUE; } @@ -797,7 +797,7 @@ meta_display_open (void) * we start out with no windows. */ if (!meta_is_wayland_compositor ()) - meta_display_manage_all_windows (display); + meta_display_manage_all_xwindows (display); if (old_active_xwindow != None) { @@ -2447,7 +2447,7 @@ meta_resize_gravity_from_grab_op (MetaGrabOp op) } void -meta_display_manage_all_windows (MetaDisplay *display) +meta_display_manage_all_xwindows (MetaDisplay *display) { guint64 *_children; guint64 *children; @@ -2461,7 +2461,8 @@ meta_display_manage_all_windows (MetaDisplay *display) for (i = 0; i < n_children; ++i) { - g_assert (META_STACK_ID_IS_X11 (children[i])); + if (!META_STACK_ID_IS_X11 (children[i])) + continue; meta_window_x11_new (display, children[i], TRUE, META_COMP_EFFECT_NONE); }