summaryrefslogtreecommitdiff
path: root/libre/vim/0002-Further-fix-widget-sizing.patch
blob: 31c67a52ac2b6152cdfd2aa491015310733d3e34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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