summaryrefslogtreecommitdiff
path: root/app-editors/gvim/0002-Further-fix-widget-sizing.patch
diff options
context:
space:
mode:
Diffstat (limited to 'app-editors/gvim/0002-Further-fix-widget-sizing.patch')
-rw-r--r--app-editors/gvim/0002-Further-fix-widget-sizing.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/app-editors/gvim/0002-Further-fix-widget-sizing.patch b/app-editors/gvim/0002-Further-fix-widget-sizing.patch
new file mode 100644
index 0000000..31c67a5
--- /dev/null
+++ b/app-editors/gvim/0002-Further-fix-widget-sizing.patch
@@ -0,0 +1,29 @@
+From ba1eefe7a2f52e1d8d16b51f12c6aba57148fb19 Mon Sep 17 00:00:00 2001
+From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
+Date: Mon, 24 Oct 2016 19:26:36 +0200
+Subject: [PATCH 2/2] Further fix widget sizing
+
+Follow-up by ofourdan in order to fix resizing on maximization. This
+makes the drawing area ignore configure events that weren't explicitly
+sent (such as from GtkForm).
+---
+ src/gui_gtk_x11.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c
+index bf3c99ad9a043ad9..71dc08ff3dc99c19 100644
+--- a/src/gui_gtk_x11.c
++++ b/src/gui_gtk_x11.c
+@@ -3099,6 +3099,9 @@ drawarea_configure_event_cb(GtkWidget *widget,
+ if (event->width == cur_width && event->height == cur_height)
+ return TRUE;
+
++ if (event->send_event == FALSE)
++ return TRUE;
++
+ cur_width = event->width;
+ cur_height = event->height;
+
+--
+2.10.1
+