diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2020-09-14 02:02:38 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2020-09-14 02:02:38 +0200 |
commit | e47667b28a0d79e51f3d3c70186eceba2f496f99 (patch) | |
tree | f2cf0a9ec84da4c6e156429d6b09527e5081463a /src/sdgtk.c | |
parent | aa198484997003294fe053d72e3f37471dca162f (diff) | |
download | tdv-e47667b28a0d79e51f3d3c70186eceba2f496f99.tar.gz tdv-e47667b28a0d79e51f3d3c70186eceba2f496f99.tar.xz tdv-e47667b28a0d79e51f3d3c70186eceba2f496f99.zip |
sdgtk: don't follow our own selection
When the main window is focused, we are probably the owner of it.
Diffstat (limited to 'src/sdgtk.c')
-rw-r--r-- | src/sdgtk.c | 1 |
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); } |