aboutsummaryrefslogtreecommitdiff
path: root/libtopmenu-client/topmenu-monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtopmenu-client/topmenu-monitor.c')
-rw-r--r--libtopmenu-client/topmenu-monitor.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libtopmenu-client/topmenu-monitor.c b/libtopmenu-client/topmenu-monitor.c
index c67e3cd..b03502e 100644
--- a/libtopmenu-client/topmenu-monitor.c
+++ b/libtopmenu-client/topmenu-monitor.c
@@ -53,10 +53,10 @@ static void handle_clipboard_owner_change(GtkClipboard *clipboard, GdkEvent *eve
static GdkFilterReturn handle_cur_server_event(GdkXEvent *xevent, GdkEvent *event, gpointer data)
{
+ TopMenuMonitor *self = TOPMENU_MONITOR(data);
XEvent *e = (XEvent*)xevent;
if (e->type == DestroyNotify) {
g_debug("Current server has been destroyed");
- TopMenuMonitor *self = TOPMENU_MONITOR(data);
if (self->priv->cur_server &&
GDK_WINDOW_XID(self->priv->cur_server) == e->xdestroywindow.window) {
topmenu_monitor_update(self);
@@ -155,7 +155,6 @@ static void topmenu_monitor_class_init(TopMenuMonitorClass *klass)
static void topmenu_monitor_init(TopMenuMonitor *self)
{
self->priv = TOPMENU_MONITOR_GET_PRIVATE(self);
- self->available = FALSE;
self->priv->atom_selection = gdk_atom_intern_static_string(ATOM_TOPMENU_SERVER_SELECTION);
self->priv->selection = gtk_clipboard_get(self->priv->atom_selection);