Accepting request 1005583 from home:fusionfuture:branches:openSUSE:Factory
- Fix unstable drag-and-drop on Wayland KDE (https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/5045) * gtk3-gdkwayland-Update-selections-offer-before-updating-dnd.patch OBS-URL: https://build.opensuse.org/request/show/1005583 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gtk3?expand=0&rev=422
This commit is contained in:
parent
0333f68aa4
commit
474dd2ba0c
@ -0,0 +1,52 @@
|
||||
From 965aa2e65f1c25113472f06b6662b0b69d724605 Mon Sep 17 00:00:00 2001
|
||||
From: Vlad Zahorodnii <vlad.zahorodnii@kde.org>
|
||||
Date: Fri, 23 Sep 2022 10:39:41 +0300
|
||||
Subject: [PATCH] gdk/wayland: Update selection's offer before updating dnd
|
||||
targets
|
||||
|
||||
gdk_wayland_drop_context_update_targets gets targets from the
|
||||
selection's offer. In order to ensure that the drop context has
|
||||
up-to-date targets, update the selection's offer before updating
|
||||
targets.
|
||||
|
||||
This fixes drag-and-drop not working reliably when running Firefox in
|
||||
Plasma Wayland session.
|
||||
---
|
||||
gdk/wayland/gdkdevice-wayland.c | 8 ++++----
|
||||
1 file changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
|
||||
index ed6ad3b138..a3d464be22 100644
|
||||
--- a/gdk/wayland/gdkdevice-wayland.c
|
||||
+++ b/gdk/wayland/gdkdevice-wayland.c
|
||||
@@ -1188,14 +1188,16 @@ data_device_enter (void *data,
|
||||
seat->pointer_info.surface_x = wl_fixed_to_double (x);
|
||||
seat->pointer_info.surface_y = wl_fixed_to_double (y);
|
||||
|
||||
- gdk_wayland_drop_context_update_targets (seat->drop_context);
|
||||
-
|
||||
selection = gdk_drag_get_selection (seat->drop_context);
|
||||
dnd_owner = gdk_selection_owner_get_for_display (seat->display, selection);
|
||||
|
||||
if (!dnd_owner)
|
||||
dnd_owner = seat->foreign_dnd_window;
|
||||
|
||||
+ gdk_wayland_selection_set_offer (seat->display, selection, offer);
|
||||
+
|
||||
+ gdk_wayland_drop_context_update_targets (seat->drop_context);
|
||||
+
|
||||
_gdk_wayland_drag_context_set_source_window (seat->drop_context, dnd_owner);
|
||||
|
||||
_gdk_wayland_drag_context_set_dest_window (seat->drop_context,
|
||||
@@ -1206,8 +1208,6 @@ data_device_enter (void *data,
|
||||
_gdk_wayland_drag_context_emit_event (seat->drop_context, GDK_DRAG_ENTER,
|
||||
GDK_CURRENT_TIME);
|
||||
|
||||
- gdk_wayland_selection_set_offer (seat->display, selection, offer);
|
||||
-
|
||||
emit_selection_owner_change (dest_window, selection);
|
||||
}
|
||||
|
||||
--
|
||||
GitLab
|
||||
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 23 09:30:34 UTC 2022 - Fusion Future <qydwhotmail@gmail.com>
|
||||
|
||||
- Fix unstable drag-and-drop on Wayland KDE
|
||||
(https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/5045)
|
||||
* gtk3-gdkwayland-Update-selections-offer-before-updating-dnd.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 1 10:27:46 UTC 2022 - Bjørn Lie <bjorn.lie@gmail.com>
|
||||
|
||||
|
@ -47,6 +47,8 @@ Source99: baselibs.conf
|
||||
Patch0: gtk3-GTK_PATH64.patch
|
||||
# PATCH-FIX-OPENSUSE gtk3-revert-forced-xftdpi.patch fvogt@opensuse.org -- Revert very controversal commit on GTK3, forcing DPI to 96
|
||||
Patch1: gtk3-revert-forced-xftdpi.patch
|
||||
# PATCH-FIX-UPSTREAM Fix unstable drag&drop on Wayland KDE https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/5045
|
||||
Patch2: gtk3-gdkwayland-Update-selections-offer-before-updating-dnd.patch
|
||||
|
||||
BuildRequires: cups-devel >= 1.7
|
||||
BuildRequires: docbook-xsl-stylesheets
|
||||
@ -387,6 +389,7 @@ cp -a %{SOURCE1} .
|
||||
%patch0 -p1
|
||||
%endif
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
|
||||
%build
|
||||
NOCONFIGURE=1 ./autogen.sh
|
||||
|
Loading…
Reference in New Issue
Block a user