From e47667b28a0d79e51f3d3c70186eceba2f496f99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Mon, 14 Sep 2020 02:02:38 +0200 Subject: [PATCH] sdgtk: don't follow our own selection When the main window is focused, we are probably the owner of it. --- src/sdgtk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sdgtk.c b/src/sdgtk.c index 30d2e57..c104f38 100644 --- a/src/sdgtk.c +++ b/src/sdgtk.c @@ -214,6 +214,7 @@ on_selection (GtkClipboard *clipboard, GdkEvent *event, G_GNUC_UNUSED gpointer data) { if (g.watch_selection + && !gtk_window_has_toplevel_focus (GTK_WINDOW (g.window)) && event->owner_change.owner != NULL) gtk_clipboard_request_text (clipboard, on_selection_received, NULL); }