Re: drawing area and motion hint mask

2009-07-30 Thread Emmanuel Touzery
Hello, Perhaps you could have something as the code below (it works for me. It is based in GtkGlArea / GtkGLExt examples and discussions in this list with Havoc Pennington years ago) int callback_area_notify (GtkWidget *widget, GdkEventMotion *event, void *data) { my_structure *structure =

Re: drawing area and motion hint mask

2009-07-30 Thread Emmanuel Touzery
Hello, That I'm getting more events (not just one, because I never call gdk_event_request_motions() or gdk_window_get_pointer() anywhere in my code) it seems somehow someone else is calling gdk_event_request_motions() or gdk_window_get_pointer() (the examples on internet are not really

drawing area and motion hint mask

2009-07-29 Thread Emmanuel Touzery
Hello, I'm trying to detect mouse moves in a drawing area. The default behaviour without the GDK_POINTER_MOTION_HINT_MASK is as expected flooding me with events which I can't handle. So I added that flag, but I still get way too many events. In my handler I put this at the top:

Re: drawing area and motion hint mask

2009-07-29 Thread Carlos Pereira
Emmanuel Touzery wrote: Hello, I'm trying to detect mouse moves in a drawing area. The default behaviour without the GDK_POINTER_MOTION_HINT_MASK is as expected flooding me with events which I can't handle. Perhaps you could have something as the code below (it works for me. It is based