summaryrefslogtreecommitdiff
path: root/src/core/display.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-01-24 11:29:35 +0100
committerStefano Karapetsas <[email protected]>2014-01-24 11:29:35 +0100
commite7548428cd64022b6b1c39265e0a6fa63a7f78d8 (patch)
tree2498643b6a28423227df1880ff7f16887583b5d5 /src/core/display.c
parente7f50837683fc30d29768ce6b00e0b1c6b476b48 (diff)
downloadmarco-e7548428cd64022b6b1c39265e0a6fa63a7f78d8.tar.bz2
marco-e7548428cd64022b6b1c39265e0a6fa63a7f78d8.tar.xz
core: Improve GTK3 support
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)
{