GNOME Bugzilla – Bug 633401
Fix warning from synthesized events with GdkDevice
Last modified: 2010-10-28 21:28:23 UTC
In GTK+ 3, it's mandatory to have a GdkDevice in a synthesized event, so fill in the pointer device for the events we synthesize and forward to GTK+. Since gdk_device_set_event() only works for allocated events, we need to switch to gdk_event_new() rather than using stack allocated events.
Created attachment 173437 [details] [review] Fix warning from synthesized events with GdkDevice
Comment on attachment 173437 [details] [review] Fix warning from synthesized events with GdkDevice good except: >to GTK+. Since gdk_device_set_event() only works for allocated events, swapped "device" and "event" in the function name
Attachment 173437 [details] pushed as c40fab2 - Fix warning from synthesized events with GdkDevice