Unfortunately, this didn't work for me.
Here is my install_event_filter():
static void install_event_filter(GtkWidget *widget) { GdkScreen *screen;
int event_mask = gdk_window_get_events(nabi->root_window) | GDK_PROPERTY_CHANGE_MASK; // new, idea from launchpad
screen = gdk_drawable_get_screen(GDK_DRAWABLE(widget->window)); nabi->root_window = gdk_screen_get_root_window(screen); //gdk_window_set_events(nabi->root_window, GDK_PROPERTY_CHANGE_MASK); gdk_window_set_events(nabi->root_window, event_mask); // idea from lanchpad gdk_window_add_filter(nabi->root_window, root_window_event_filter, NULL); }
Any ideas?
Unfortunately, this didn't work for me.
Here is my install_ event_filter( ):
static void event_filter( GtkWidget *widget)
install_
{
GdkScreen *screen;
int event_mask = gdk_window_ get_events( nabi->root_ window) | GDK_PROPERTY_ CHANGE_ MASK; // new, idea from launchpad
screen = gdk_drawable_ get_screen( GDK_DRAWABLE( widget- >window) ); >root_window = gdk_screen_ get_root_ window( screen) ; window_ set_events( nabi->root_ window, GDK_PROPERTY_ CHANGE_ MASK); window_ set_events( nabi->root_ window, event_mask); // idea from lanchpad window_ add_filter( nabi->root_ window, root_window_ event_filter, NULL);
nabi-
//gdk_
gdk_
gdk_
}
Any ideas?