diff options
author | Javier <dev.git@javispedro.com> | 2015-07-26 01:02:12 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2015-07-26 01:02:12 +0200 |
commit | baef440d424640a6fc99edd8a12a6abcea80c5fc (patch) | |
tree | 7fb717c04564618d3c9c7b0db1c46ddde138bf5a /libtopmenu-client/topmenu-monitor.c | |
parent | f690cd97506f45e02bb6383fde2a7c8f06820408 (diff) | |
download | topmenu-gtk-baef440d424640a6fc99edd8a12a6abcea80c5fc.tar.gz topmenu-gtk-baef440d424640a6fc99edd8a12a6abcea80c5fc.zip |
initial gtk2 "transparent" background attempt
Diffstat (limited to 'libtopmenu-client/topmenu-monitor.c')
-rw-r--r-- | libtopmenu-client/topmenu-monitor.c | 3 |
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); |