summaryrefslogtreecommitdiff
path: root/katze/gtk3-compat.h
diff options
context:
space:
mode:
authorChristian Dywan <christian@twotoasts.de>2012-09-18 21:29:38 +0200
committerChristian Dywan <christian@twotoasts.de>2012-09-18 21:29:38 +0200
commitf7c128ba192ced41a9323ef2b19dc6c2c83c676a (patch)
treecf72171a49d4b7bde6d0f836ddd584f2bd304b97 /katze/gtk3-compat.h
parent6aa2b06c2c7ed20db33d3a07b9f6c87cfcc1f413 (diff)
downloadmidori-f7c128ba192ced41a9323ef2b19dc6c2c83c676a.tar.gz
Enclose screen saver and root window in IS_X11_DISPLAY
If building with a Wayland-enabled GTK+3 the GdkDisplay can be something other than GdkX11Display at runtime. Fixes: https://bugs.launchpad.net/midori/+bug/975355
Diffstat (limited to 'katze/gtk3-compat.h')
-rw-r--r--katze/gtk3-compat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/katze/gtk3-compat.h b/katze/gtk3-compat.h
index 12981b1a..a8450af2 100644
--- a/katze/gtk3-compat.h
+++ b/katze/gtk3-compat.h
@@ -116,6 +116,10 @@ G_BEGIN_DECLS
#define GDK_KEY_Return GDK_Return
#endif
+#ifndef GDK_IS_X11_DISPLAY
+ #define GDK_IS_X11_DISPLAY(display) TRUE
+#endif
+
G_END_DECLS
#endif