diff options
Diffstat (limited to 'gtk/PlatGTK.cxx')
| -rw-r--r-- | gtk/PlatGTK.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index f91fbdbe0..742f4ce9b 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -1338,10 +1338,14 @@ void Window::SetCursor(Cursor curs) { return; cursorLast = curs; +#if GTK_CHECK_VERSION(2,24,0) GdkWindow *pwin = WindowFromWidget(PWidget(wid)); if (!pwin) return; GdkDisplay *pdisplay = gdk_window_get_display(pwin); +#else + GdkDisplay *pdisplay = gdk_display_get_default(); +#endif if (!pdisplay) return; |
