Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gtk3 for openSUSE:Factory checked in 
at 2022-09-25 15:34:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gtk3 (Old)
 and      /work/SRC/openSUSE:Factory/.gtk3.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gtk3"

Sun Sep 25 15:34:25 2022 rev:180 rq:1005626 version:3.24.34

Changes:
--------
--- /work/SRC/openSUSE:Factory/gtk3/gtk3.changes        2022-09-21 
14:40:02.317356625 +0200
+++ /work/SRC/openSUSE:Factory/.gtk3.new.2275/gtk3.changes      2022-09-25 
15:34:31.427510319 +0200
@@ -1,0 +2,7 @@
+Fri Sep 23 09:30:34 UTC 2022 - Fusion Future <qydwhotm...@gmail.com>
+
+- Fix unstable drag-and-drop on Wayland KDE, add:
+  * gtk3-gdkwayland-Update-selections-offer-before-updating-dnd.patch
+  https://gitlab.gnome.org/GNOME/gtk/-/commit/56100ab4
+
+-------------------------------------------------------------------

New:
----
  gtk3-gdkwayland-Update-selections-offer-before-updating-dnd.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ gtk3.spec ++++++
--- /var/tmp/diff_new_pack.xnVwgZ/_old  2022-09-25 15:34:32.987514075 +0200
+++ /var/tmp/diff_new_pack.xnVwgZ/_new  2022-09-25 15:34:32.991514086 +0200
@@ -47,6 +47,8 @@
 Patch0:         gtk3-GTK_PATH64.patch
 # PATCH-FIX-OPENSUSE gtk3-revert-forced-xftdpi.patch fv...@opensuse.org -- 
Revert very controversal commit on GTK3, forcing DPI to 96
 Patch1:         gtk3-revert-forced-xftdpi.patch
+# PATCH-FIX-UPSTREAM 
gtk3-gdkwayland-Update-selections-offer-before-updating-dnd.patch -- Fix 
unstable drag&drop on Wayland
+Patch2:         
gtk3-gdkwayland-Update-selections-offer-before-updating-dnd.patch
 
 BuildRequires:  cups-devel >= 1.7
 BuildRequires:  docbook-xsl-stylesheets
@@ -387,6 +389,7 @@
 %patch0 -p1
 %endif
 %patch1 -p1
+%patch2 -p1
 
 %build
 NOCONFIGURE=1 ./autogen.sh

++++++ gtk3-gdkwayland-Update-selections-offer-before-updating-dnd.patch ++++++
>From 965aa2e65f1c25113472f06b6662b0b69d724605 Mon Sep 17 00:00:00 2001
From: Vlad Zahorodnii <vlad.zahorod...@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

Reply via email to