aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--matchbox/core/mb-window-manager.c16
2 files changed, 14 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index f643a98..d9d8b84 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-04-18 Ross Burton <ross@openedhand.com>
+
+ * matchbox/core/mb-window-manager.c:
+ Only register a configure notify handler for all windows if
+ compositing is enabled.
+
2008-04-16 Robert Bragg <bob@o-hand.com>
* matchbox-window-manager-2/matchbox/client-types/mb-wm-client-panel.c
diff --git a/matchbox/core/mb-window-manager.c b/matchbox/core/mb-window-manager.c
index 4045b3a..c2c53e1 100644
--- a/matchbox/core/mb-window-manager.c
+++ b/matchbox/core/mb-window-manager.c
@@ -566,11 +566,11 @@ mb_wm_handle_property_notify (XPropertyEvent *xev,
return True;
}
+#if ENABLE_COMPOSITE
static Bool
-mb_wm_handle_config_notify (XConfigureEvent *xev,
+mb_wm_handle_composite_config_notify (XConfigureEvent *xev,
void *userdata)
{
-#if ENABLE_COMPOSITE
MBWindowManager * wm = (MBWindowManager*)userdata;
if (mb_wm_comp_mgr_enabled (wm->comp_mgr))
@@ -582,9 +582,9 @@ mb_wm_handle_config_notify (XConfigureEvent *xev,
if (client)
mb_wm_comp_mgr_client_configure (client->cm_client);
}
-#endif
return True;
}
+#endif
static Bool
mb_wm_handle_config_request (XConfigureRequestEvent *xev,
@@ -1578,18 +1578,18 @@ mb_window_manager_init (MBWMObject *this, va_list vap)
MapNotify,
(MBWMXEventFunc)mb_wm_handle_map_notify,
wm);
-#endif
mb_wm_main_context_x_event_handler_add (wm->main_ctx,
None,
- ConfigureRequest,
- (MBWMXEventFunc)mb_wm_handle_config_request,
+ ConfigureNotify,
+ (MBWMXEventFunc)mb_wm_handle_composite_config_notify,
wm);
+#endif
mb_wm_main_context_x_event_handler_add (wm->main_ctx,
None,
- ConfigureNotify,
- (MBWMXEventFunc)mb_wm_handle_config_notify,
+ ConfigureRequest,
+ (MBWMXEventFunc)mb_wm_handle_config_request,
wm);
mb_wm_main_context_x_event_handler_add (wm->main_ctx,