[gtk/wip/carlosg/unbreak-paste-after-copy: 1/2] Revert "gdk: Do not call gdk_selection_owner_set() internally to the backend"
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/carlosg/unbreak-paste-after-copy: 1/2] Revert "gdk: Do not call gdk_selection_owner_set() internally to the backend"
- Date: Tue, 22 Oct 2019 16:45:13 +0000 (UTC)
commit ba0a0ce0a0e85d57b3ec2010189b4c8c484c2c9f
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Oct 22 18:36:44 2019 +0200
Revert "gdk: Do not call gdk_selection_owner_set() internally to the backend"
This reverts commit 7a891eeb6def29f6562a3833c272b0cb2a67ae23.
gdk/wayland/gdkselection-wayland.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gdk/wayland/gdkselection-wayland.c b/gdk/wayland/gdkselection-wayland.c
index e14f50de8d..9494489d69 100644
--- a/gdk/wayland/gdkselection-wayland.c
+++ b/gdk/wayland/gdkselection-wayland.c
@@ -937,6 +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_wayland_selection_unset_data_source (display, atom);
}
@@ -1047,6 +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_wayland_selection_unset_data_source (display, atom);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]