Fix firefox popup positioning

This commit is contained in:
Matthias Clasen 2015-11-25 14:36:37 -05:00
parent bc0338046e
commit 1c5d657b31
2 changed files with 39 additions and 1 deletions

View File

@ -0,0 +1,32 @@
From 923ad2767ac722c7e4ec40d0f03ca01283a99b3b Mon Sep 17 00:00:00 2001
From: Benjamin Otte <otte@redhat.com>
Date: Wed, 25 Nov 2015 15:25:55 +0100
Subject: [PATCH] window: Don't lose position information
Before calling gdk_window_move_resize(), store the full configure
request, not just width and height.
Fixes firefox randomly losing position of its dropdown windows.
https://bugzilla.gnome.org/show_bug.cgi?id=758609
---
gtk/gtkwindow.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 309a1fe..047ceaf 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -6121,8 +6121,7 @@ gtk_window_show (GtkWidget *widget)
* and gdk_window_resize() below, rather than
* queuing it.
*/
- info->last.configure_request.width = configure_request.width;
- info->last.configure_request.height = configure_request.height;
+ info->last.configure_request = configure_request;
/* and allocate the window - this is normally done
* in move_resize in response to configure notify
--
2.6.3

View File

@ -18,7 +18,7 @@
Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X
Name: gtk3 Name: gtk3
Version: 3.19.3 Version: 3.19.3
Release: 1%{?dist} Release: 2%{?dist}
License: LGPLv2+ License: LGPLv2+
Group: System Environment/Libraries Group: System Environment/Libraries
URL: http://www.gtk.org URL: http://www.gtk.org
@ -26,6 +26,8 @@ URL: http://www.gtk.org
Source: http://download.gnome.org/sources/gtk+/3.19/gtk+-%{version}.tar.xz Source: http://download.gnome.org/sources/gtk+/3.19/gtk+-%{version}.tar.xz
Patch0: 0001-window-Don-t-lose-position-information.patch
BuildRequires: gnome-common autoconf automake intltool gettext BuildRequires: gnome-common autoconf automake intltool gettext
BuildRequires: pkgconfig(atk) >= %{atk_version} BuildRequires: pkgconfig(atk) >= %{atk_version}
BuildRequires: pkgconfig(atk-bridge-2.0) BuildRequires: pkgconfig(atk-bridge-2.0)
@ -166,6 +168,7 @@ the functionality of the installed %{name} package.
%prep %prep
%setup -q -n gtk+-%{version} %setup -q -n gtk+-%{version}
%patch0 -p1
%build %build
@ -338,6 +341,9 @@ gtk-query-immodules-3.0-%{__isa_bits} --update-cache
%{_datadir}/installed-tests %{_datadir}/installed-tests
%changelog %changelog
* Wed Nov 25 2015 Matthias Clasen <mclasen@redhat.com> - 3.19.3-2
- Fix firefox popup positioning
* Mon Nov 23 2015 Matthias Clasen <mclasen@redhat.com> - 3.19.3-1 * Mon Nov 23 2015 Matthias Clasen <mclasen@redhat.com> - 3.19.3-1
- Update to 3.19.3 - Update to 3.19.3