summaryrefslogtreecommitdiff
path: root/typing-break/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'typing-break/main.c')
-rw-r--r--typing-break/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/typing-break/main.c b/typing-break/main.c
index c8ded7bb..dcc1d89f 100644
--- a/typing-break/main.c
+++ b/typing-break/main.c
@@ -35,7 +35,11 @@ gboolean debug = FALSE;
static gboolean
have_tray (void)
{
+#if GTK_CHECK_VERSION (3, 0, 0)
+ Screen *xscreen = DefaultScreenOfDisplay (gdk_x11_display_get_xdisplay(gdk_display_get_default()));
+#else
Screen *xscreen = DefaultScreenOfDisplay (gdk_display);
+#endif
Atom selection_atom;
char *selection_atom_name;