+ // HACK TO BYPASS GTK+ 2.17 issues
+ if (!gtk_check_version(2, 17, 0)) {
+ /* first we make *all* canvas subwindows become XInput aware,
+ so that it'll be safe to disable XInput later on... (!!!) */
+ gtk_widget_set_extension_events(GTK_WIDGET (canvas),
+ ui.use_xinput?GDK_EXTENSION_EVENTS_ALL:GDK_EXTENSION_EVENTS_NONE);
+ /* then we ask the canvas's leave-notify handler to disable
+ xinput when it's safe to do so... */
+ ui.need_emergency_disable_xinput = TRUE;
+ }
+