aboutsummaryrefslogtreecommitdiff
path: root/libtopmenu-client/topmenu-monitor.c
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2014-03-15 19:00:17 +0100
committerJavier <dev.git@javispedro.com>2014-03-15 19:00:17 +0100
commitfae72947043ae3b1627dac77b3c42bf2e1dbbd09 (patch)
tree43d90ae5e1f0f70db2ddd16ae6acbb101b92a2d8 /libtopmenu-client/topmenu-monitor.c
parentcecc7efece527e09afdfb59dc24cbf6086bd2654 (diff)
downloadtopmenu-gtk-fae72947043ae3b1627dac77b3c42bf2e1dbbd09.tar.gz
topmenu-gtk-fae72947043ae3b1627dac77b3c42bf2e1dbbd09.zip
start porting to gtk3
Diffstat (limited to 'libtopmenu-client/topmenu-monitor.c')
-rw-r--r--libtopmenu-client/topmenu-monitor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libtopmenu-client/topmenu-monitor.c b/libtopmenu-client/topmenu-monitor.c
index abd7522..2f63e9b 100644
--- a/libtopmenu-client/topmenu-monitor.c
+++ b/libtopmenu-client/topmenu-monitor.c
@@ -39,7 +39,7 @@ static GdkFilterReturn handle_cur_server_event(GdkXEvent *xevent, GdkEvent *even
g_debug("Current server has been destroyed");
TopMenuMonitor *self = TOPMENU_MONITOR(data);
if (self->priv->cur_server &&
- GDK_WINDOW_XWINDOW(self->priv->cur_server) == e->xdestroywindow.window) {
+ gdk_x11_window_get_xid(self->priv->cur_server) == e->xdestroywindow.window) {
topmenu_monitor_update(self);
}
}
@@ -52,10 +52,10 @@ static void topmenu_monitor_set_cur_server(TopMenuMonitor *self, GdkWindow *wind
// Nothing to do
return;
}
- g_debug("Setting current server to 0x%lx", GDK_WINDOW_XWINDOW(window));
+ g_debug("Setting current server to 0x%lx", gdk_x11_window_get_xid(window));
if (self->priv->cur_server) {
gdk_window_remove_filter(window, handle_cur_server_event, self);
- gdk_window_unref(self->priv->cur_server);
+ g_object_unref(self->priv->cur_server);
self->priv->cur_server = 0;
}
if (window) {