From 1c5d657b31a03a804ee5808472b3dde756b76a99 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 25 Nov 2015 14:36:37 -0500 Subject: [PATCH] Fix firefox popup positioning --- ...ndow-Don-t-lose-position-information.patch | 32 +++++++++++++++++++ gtk3.spec | 8 ++++- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 0001-window-Don-t-lose-position-information.patch diff --git a/0001-window-Don-t-lose-position-information.patch b/0001-window-Don-t-lose-position-information.patch new file mode 100644 index 0000000..ebcd235 --- /dev/null +++ b/0001-window-Don-t-lose-position-information.patch @@ -0,0 +1,32 @@ +From 923ad2767ac722c7e4ec40d0f03ca01283a99b3b Mon Sep 17 00:00:00 2001 +From: Benjamin Otte +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 + diff --git a/gtk3.spec b/gtk3.spec index 2c0ff36..3488a26 100644 --- a/gtk3.spec +++ b/gtk3.spec @@ -18,7 +18,7 @@ Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X Name: gtk3 Version: 3.19.3 -Release: 1%{?dist} +Release: 2%{?dist} License: LGPLv2+ Group: System Environment/Libraries 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 +Patch0: 0001-window-Don-t-lose-position-information.patch + BuildRequires: gnome-common autoconf automake intltool gettext BuildRequires: pkgconfig(atk) >= %{atk_version} BuildRequires: pkgconfig(atk-bridge-2.0) @@ -166,6 +168,7 @@ the functionality of the installed %{name} package. %prep %setup -q -n gtk+-%{version} +%patch0 -p1 %build @@ -338,6 +341,9 @@ gtk-query-immodules-3.0-%{__isa_bits} --update-cache %{_datadir}/installed-tests %changelog +* Wed Nov 25 2015 Matthias Clasen - 3.19.3-2 +- Fix firefox popup positioning + * Mon Nov 23 2015 Matthias Clasen - 3.19.3-1 - Update to 3.19.3