diff options
| author | Paul Eggert | 2016-05-16 10:05:19 -0700 |
|---|---|---|
| committer | Paul Eggert | 2016-05-16 10:07:02 -0700 |
| commit | 9ca5dbf947a7421d37b3e2d2bc6b8d2c9218bc65 (patch) | |
| tree | 50c1ab78523dbc47b34ec8c1fabf8a3393146ced | |
| parent | 939eb753d521830cd931b45d72a745f1dd85ec09 (diff) | |
| download | emacs-9ca5dbf947a7421d37b3e2d2bc6b8d2c9218bc65.tar.gz emacs-9ca5dbf947a7421d37b3e2d2bc6b8d2c9218bc65.zip | |
Avoid shrinking windows with Gtk+ 3.20.3
Problem reported by Matthias Clasen (Bug#23144).
This was fixed in a different way in master.
Do not merge to master.
* src/xterm.c (handle_one_xevent) [GTK_CHECK_VERSION (3, 20, 3)]:
Do not call xg_frame_resized in the MapNotify case.
| -rw-r--r-- | src/xterm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c index 2f8e0775909..c64c17463cf 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -7897,7 +7897,13 @@ handle_one_xevent (struct x_display_info *dpyinfo, | |||
| 7897 | record_asynch_buffer_change (); | 7897 | record_asynch_buffer_change (); |
| 7898 | 7898 | ||
| 7899 | #ifdef USE_GTK | 7899 | #ifdef USE_GTK |
| 7900 | /* xg_frame_resized does the wrong thing with Gtk+ 3.20.3 or later. | ||
| 7901 | For earlier Gtk+ versions it is unclear whether | ||
| 7902 | xg_frame_resized is useful, so leave it in for now. | ||
| 7903 | See Bug#23144. */ | ||
| 7904 | # if ! GTK_CHECK_VERSION (3, 20, 3) | ||
| 7900 | xg_frame_resized (f, -1, -1); | 7905 | xg_frame_resized (f, -1, -1); |
| 7906 | # endif | ||
| 7901 | #endif | 7907 | #endif |
| 7902 | } | 7908 | } |
| 7903 | goto OTHER; | 7909 | goto OTHER; |