summaryrefslogtreecommitdiff
path: root/src/core/display.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/display.c')
-rw-r--r--src/core/display.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/display.c b/src/core/display.c
index 584ca098..d950e7ea 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -1454,7 +1454,11 @@ static gboolean maybe_send_event_to_gtk(MetaDisplay* display, XEvent* xevent)
return FALSE;
}
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gdk_window = gdk_x11_window_lookup_for_display(gdk_display, window);
+#else
gdk_window = gdk_window_lookup_for_display(gdk_display, window);
+#endif
if (gdk_window == NULL)
{