[gtk/wip/carlosg/unbreak-paste-after-copy: 2/2] gdk: Do not change the windowing selection when cancelling source
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/carlosg/unbreak-paste-after-copy: 2/2] gdk: Do not change the windowing selection when cancelling source
- Date: Tue, 22 Oct 2019 16:45:18 +0000 (UTC)
commit ff41436b594e04e106c0cd3859080ac80e6e6722
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Oct 22 18:39:30 2019 +0200
gdk: Do not change the windowing selection when cancelling source
We are interested in changing the owner window, so the upper bits know
that it is not this client who owns the selection. We are still not
interested in unsetting the selection desktop-wide though, so only avoid
emitting the relevant events then.
The same reasonings than in commit 7a891eeb6def apply otherwise.
gdk/wayland/gdkselection-wayland.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/wayland/gdkselection-wayland.c b/gdk/wayland/gdkselection-wayland.c
index 9494489d69..a1925edd35 100644
--- a/gdk/wayland/gdkselection-wayland.c
+++ b/gdk/wayland/gdkselection-wayland.c
@@ -937,7 +937,7 @@ data_source_cancelled (void *data,
gdk_drag_context_cancel (context, GDK_DRAG_CANCEL_ERROR);
emit_selection_clear (display, atom);
- gdk_selection_owner_set (NULL, atom, GDK_CURRENT_TIME, TRUE);
+ gdk_selection_owner_set (NULL, atom, GDK_CURRENT_TIME, FALSE);
gdk_wayland_selection_unset_data_source (display, atom);
}
@@ -1048,7 +1048,7 @@ primary_source_cancelled (void *data,
atom = atoms[ATOM_PRIMARY];
emit_selection_clear (display, atom);
- gdk_selection_owner_set (NULL, atom, GDK_CURRENT_TIME, TRUE);
+ gdk_selection_owner_set (NULL, atom, GDK_CURRENT_TIME, FALSE);
gdk_wayland_selection_unset_data_source (display, atom);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]