aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sdgtk.c1
1 files changed, 1 insertions, 0 deletions
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);
}