diff options
-rw-r--r-- | gtk/ScintillaGTK.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index f40f11494..178c591d8 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -2000,7 +2000,12 @@ gint ScintillaGTK::Motion(GtkWidget *widget, GdkEventMotion *event) { int y = 0; GdkModifierType state; if (event->is_hint) { +#if GTK_CHECK_VERSION(3,0,0) + gdk_window_get_device_position(event->window, + event->device, &x, &y, &state); +#else gdk_window_get_pointer(event->window, &x, &y, &state); +#endif } else { x = static_cast<int>(event->x); y = static_cast<int>(event->y); |