GNOME Bugzilla – Bug 734738
Possible bug in W32 input grabbing
Last modified: 2014-08-15 17:09:22 UTC
When building GDK i get this: ../../../gtk+-3.13.6/gdk/win32/gdkevents-win32.c: In function 'generate_grab_broken_event': ../../../gtk+-3.13.6/gdk/win32/gdkevents-win32.c:213:14: warning: variable 'source_device' set but not used [-Wunused-but-set-variable] GdkDevice *source_device; ^ This doesn't look like just unused variable warning, since it may be possible that the value was actually meant to be used, but a different one is re-used instead: GdkDevice *device; GdkDevice *source_device; /* Much efforts to get source_device here */ if (keyboard) { device = GDK_DEVICE_MANAGER_WIN32 (device_manager)->core_keyboard; source_device = GDK_DEVICE_MANAGER_WIN32 (device_manager)->system_keyboard; } else { device = GDK_DEVICE_MANAGER_WIN32 (device_manager)->core_pointer; source_device = GDK_DEVICE_MANAGER_WIN32 (device_manager)->system_pointer; } event->grab_broken.window = window; event->grab_broken.send_event = 0; event->grab_broken.keyboard = keyboard; event->grab_broken.implicit = FALSE; event->grab_broken.grab_window = grab_window; gdk_event_set_device (event, device); /* Yet it's never used here */ gdk_event_set_source_device (event, device);
yeah, pretty clear that source_device was meant in the last line