diff --git a/src/frame.c b/src/frame.c index 2044048..cac966d 100644 --- a/src/frame.c +++ b/src/frame.c @@ -5161,7 +5161,7 @@ With some window managers you may have to set this to non-nil in order to set the size of a frame in pixels, to maximize frames or to make them fullscreen. To resize your initial frame pixelwise, set this option to a non-nil value in your init file. */); - frame_resize_pixelwise = 0; + frame_resize_pixelwise = 1; DEFVAR_LISP ("frame-inhibit-implied-resize", frame_inhibit_implied_resize, doc: /* Whether frames should be resized implicitly. diff --git a/src/xterm.c b/src/xterm.c index b7aacfa..4c7aec4 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -10169,6 +10169,7 @@ x_check_fullscreen (struct frame *f) { int width = FRAME_PIXEL_WIDTH (f), height = FRAME_PIXEL_HEIGHT (f); struct x_display_info *dpyinfo = FRAME_DISPLAY_INFO (f); + Lisp_Object lval; switch (f->want_fullscreen) { @@ -10186,6 +10187,23 @@ x_check_fullscreen (struct frame *f) height = x_display_pixel_height (dpyinfo); } + lval = Qnil; + switch (f->want_fullscreen) + { + case FULLSCREEN_WIDTH: + lval = Qfullwidth; + break; + case FULLSCREEN_HEIGHT: + lval = Qfullheight; + break; + case FULLSCREEN_BOTH: + lval = Qfullboth; + break; + case FULLSCREEN_MAXIMIZED: + lval = Qmaximized; + break; + } + frame_size_history_add (f, Qx_check_fullscreen, width, height, Qnil); @@ -10200,6 +10218,8 @@ x_check_fullscreen (struct frame *f) false, true, false, true); x_sync (f); } + + store_frame_param (f, Qfullscreen, lval); } }