Accepting request 450580 from GNOME:Next
New stable release OBS-URL: https://build.opensuse.org/request/show/450580 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gtk3?expand=0&rev=264
This commit is contained in:
parent
d7ee93061b
commit
d6bd8464d8
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:eba75a216a117f4391beb2971ba20ff8a1823f109893f0ab6c2eac2210ea172f
|
||||
size 18247052
|
3
gtk+-3.22.7.tar.xz
Normal file
3
gtk+-3.22.7.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a3a27564bfb1679ebbc75c37cd2bcd6e727c8bdfbcd3984d29305bf9ee60d432
|
||||
size 18301484
|
@ -1,54 +0,0 @@
|
||||
From 5bae71f896eb5516c04b1b2374aaff05cfb8b3c0 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Jonas=20=C3=85dahl?= <jadahl@gmail.com>
|
||||
Date: Thu, 5 Jan 2017 16:01:49 +0800
|
||||
Subject: wayland: Handle subsurface as popup parent
|
||||
|
||||
When a subsurface is used as a parent of a popup, GDK needs to traverse
|
||||
up to the transient-for as the next parent, to properly find the parent
|
||||
used by the popup positioner. This is because the parent of a popup
|
||||
must always either be an xdg_popup or an xdg_surface, but traversing
|
||||
the "parent" (in GDK terms) upwards from a subsurface will end up on
|
||||
the fake root window before we hit the actual parent (in Wayland terms).
|
||||
|
||||
https://bugzilla.gnome.org/show_bug.cgi?id=776225
|
||||
---
|
||||
gdk/wayland/gdkwindow-wayland.c | 20 ++++++++++++++++----
|
||||
1 file changed, 16 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
|
||||
index 0314117..8fce48b 100644
|
||||
--- a/gdk/wayland/gdkwindow-wayland.c
|
||||
+++ b/gdk/wayland/gdkwindow-wayland.c
|
||||
@@ -1656,13 +1656,25 @@ get_real_parent_and_translate (GdkWindow *window,
|
||||
GdkWindowImplWayland *impl = GDK_WINDOW_IMPL_WAYLAND (window->impl);
|
||||
GdkWindow *parent = impl->transient_for;
|
||||
|
||||
- while (parent &&
|
||||
- !gdk_window_has_native (parent) &&
|
||||
- gdk_window_get_effective_parent (parent))
|
||||
+ while (parent)
|
||||
{
|
||||
+ GdkWindowImplWayland *parent_impl =
|
||||
+ GDK_WINDOW_IMPL_WAYLAND (parent->impl);
|
||||
+ GdkWindow *effective_parent = gdk_window_get_effective_parent (parent);
|
||||
+
|
||||
+ if ((gdk_window_has_native (parent) &&
|
||||
+ !parent_impl->display_server.wl_subsurface) ||
|
||||
+ !effective_parent)
|
||||
+ break;
|
||||
+
|
||||
*x += parent->x;
|
||||
*y += parent->y;
|
||||
- parent = gdk_window_get_effective_parent (parent);
|
||||
+
|
||||
+ if (gdk_window_has_native (parent) &&
|
||||
+ parent_impl->display_server.wl_subsurface)
|
||||
+ parent = parent->transient_for;
|
||||
+ else
|
||||
+ parent = effective_parent;
|
||||
}
|
||||
|
||||
return parent;
|
||||
--
|
||||
cgit v0.12
|
||||
|
11
gtk3.changes
11
gtk3.changes
@ -1,3 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 16 20:20:22 UTC 2017 - zaitor@opensuse.org
|
||||
|
||||
- Update to version 3.22.7:
|
||||
+ Bugs fixed: bgo#165385, bgo#769214, bgo#769835, bgo#774726,
|
||||
bgo#775846, bgo#776031, bgo#776225, bgo#776485, bgo#776807,
|
||||
bgo#777031, bgo#777176.
|
||||
+ Updated translations.
|
||||
- Drop gtk3-wayland-handle-subsurface-popup-parent.patch: Fixed
|
||||
upstream.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 8 13:37:02 UTC 2017 - zaitor@opensuse.org
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
||||
|
||||
Name: gtk3
|
||||
%define _name gtk+
|
||||
Version: 3.22.6
|
||||
Version: 3.22.7
|
||||
Release: 0
|
||||
Summary: The GTK+ toolkit library (version 3)
|
||||
License: LGPL-2.1+
|
||||
@ -44,8 +44,6 @@ Source99: baselibs.conf
|
||||
Patch0: gtk3-GTK_PATH64.patch
|
||||
# PATCH-NEEDS-REBASE gtk3-path-local.patch Search in /usr/local/%{_lib} by default. bnc369696 bgo534474 -- Was PATCH-FIX-OPENSUSE
|
||||
Patch1: gtk3-path-local.patch
|
||||
# PATCH-FIX-UPSTREAM gtk3-wayland-handle-subsurface-popup-parent.patch bgo# zaitor@opensuse.org -- Handle subsurface as popup parent
|
||||
Patch2: gtk3-wayland-handle-subsurface-popup-parent.patch
|
||||
BuildRequires: cups-devel >= 1.2
|
||||
BuildRequires: docbook-xsl-stylesheets
|
||||
BuildRequires: fdupes
|
||||
@ -360,7 +358,6 @@ cp -a %{S:1} .
|
||||
%endif
|
||||
# Patch disabled, needs rebase.
|
||||
#patch1 -p0
|
||||
%patch2 -p1
|
||||
|
||||
%build
|
||||
# Disabled since patch 1 is in need of rebase
|
||||
|
Loading…
Reference in New Issue
Block a user