From 1f3f68b2a6da4c9d0b54f18b0bcc6c4dd2b243ad Mon Sep 17 00:00:00 2001 From: Philip Date: Sat, 22 Aug 2015 14:59:10 +0000 Subject: [PATCH] Do not apply this patch. See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14627 --- src/gtkutil.c | 11 ----------- src/xterm.c | 2 ++ 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/gtkutil.c b/src/gtkutil.c index d684cd9..bdbfb0d 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -1364,7 +1364,6 @@ x_wm_set_size_hint (struct frame *f, long int flags, bool user_position) int base_width, base_height; int min_rows = 0, min_cols = 0; int win_gravity = f->win_gravity; - Lisp_Object fs_state, frame; int scale = xg_get_gdk_scale (); /* Don't set size hints during initialization; that apparently leads @@ -1373,16 +1372,6 @@ x_wm_set_size_hint (struct frame *f, long int flags, bool user_position) if (NILP (Vafter_init_time) || !FRAME_GTK_OUTER_WIDGET (f)) return; - XSETFRAME (frame, f); - fs_state = Fframe_parameter (frame, Qfullscreen); - if (EQ (fs_state, Qmaximized) || EQ (fs_state, Qfullboth)) - { - /* Don't set hints when maximized or fullscreen. Apparently KWin and - Gtk3 don't get along and the frame shrinks (!). - */ - return; - } - if (flags) { memset (&size_hints, 0, sizeof (size_hints)); diff --git a/src/xterm.c b/src/xterm.c index b7aacfa..0fd2464 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -10189,6 +10189,8 @@ x_check_fullscreen (struct frame *f) frame_size_history_add (f, Qx_check_fullscreen, width, height, Qnil); + x_wm_set_size_hint (f, 0, false); + XResizeWindow (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f), width, height); -- 2.5.0