From 2a3445c865546aa85e6744b5e459f360acc55686 Mon Sep 17 00:00:00 2001 From: Tomas Frydrych Date: Mon, 27 Oct 2008 17:17:09 +0000 Subject: [PATCH] Add StructureNotifyMask windows the compositor is interested in. --- src/compositor/mutter/compositor-mutter.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/compositor/mutter/compositor-mutter.c b/src/compositor/mutter/compositor-mutter.c index 14f3cca8f..876477887 100644 --- a/src/compositor/mutter/compositor-mutter.c +++ b/src/compositor/mutter/compositor-mutter.c @@ -1353,9 +1353,12 @@ add_win (MetaScreen *screen, MetaWindow *window, Window xwindow) * If Metacity has decided not to manage this window then the input events * won't have been set on the window */ - events_needed = PropertyChangeMask | SubstructureNotifyMask; + events_needed = PropertyChangeMask | + SubstructureNotifyMask | + StructureNotifyMask; - if (!(attrs.your_event_mask & PropertyChangeMask) || + if (!(attrs.your_event_mask & PropertyChangeMask) || + !(attrs.your_event_mask & StructureNotifyMask) || !(attrs.your_event_mask & SubstructureNotifyMask)) { gulong event_mask; @@ -1376,6 +1379,11 @@ add_win (MetaScreen *screen, MetaWindow *window, Window xwindow) clutter_actor_set_position (CLUTTER_ACTOR (cw), priv->attrs.x, priv->attrs.y); + + if (!window) + printf ("!!! override 0x%x at %d, %d\n", + (guint)xwindow, priv->attrs.x, priv->attrs.y); + clutter_container_add_actor (CLUTTER_CONTAINER (info->window_group), CLUTTER_ACTOR (cw)); clutter_actor_hide (CLUTTER_ACTOR (cw)); @@ -2058,7 +2066,7 @@ clutter_cmp_manage_screen (MetaCompositor *compositor, { ClutterActor *foo; - foo = clutter_label_new_with_text ("Sans Bold 48px", + foo = clutter_label_new_with_text ("Sans Bold 48px", "Yessir. The compositor is running."); clutter_actor_set_opacity (foo, 100); clutter_actor_set_position (foo, 20, height - 50);