From 6965a1269bc83414f78d82baa4202e8f6f4669c9 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Tue, 4 Feb 2014 19:20:19 +0100 Subject: typing-break: Add GTK3 support --- typing-break/drw-selection.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'typing-break/drw-selection.c') diff --git a/typing-break/drw-selection.c b/typing-break/drw-selection.c index 28a96533..5f6b81f7 100644 --- a/typing-break/drw-selection.c +++ b/typing-break/drw-selection.c @@ -78,7 +78,11 @@ drw_selection_find_existing (DrwSelection *drw_selection) gdk_x11_get_xatom_by_name (SELECTION_NAME)); if (old) { XSelectInput (xdisplay, old, StructureNotifyMask); +#if GTK_CHECK_VERSION (3, 0, 0) + drw_selection->owner_window = gdk_x11_window_foreign_new_for_display (gdk_display_get_default (), old); +#else drw_selection->owner_window = gdk_window_foreign_new (old); +#endif } XSync (xdisplay, False); -- cgit v1.2.1