From e55460e53ca9b0e42beb2e5129f4beece2599a95 Mon Sep 17 00:00:00 2001 From: Anders Lindgren Date: Mon, 28 Sep 2015 08:11:14 +0200 Subject: [PATCH] Respect value of frame_resize_pixelwise when handling fullscreen state. * src/nsterm.m (handleFS): Respect frame_resize_pixelwise when setting size increments. --- src/nsterm.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/nsterm.m b/src/nsterm.m index a5bf06a70af..65d07b2f1e4 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -6724,6 +6724,11 @@ if (cols > 0 && rows > 0) { if (fs_state != emacsframe->want_fullscreen) { + NSSize sz; + sz.width = frame_resize_pixelwise ? 1 : FRAME_COLUMN_WIDTH (emacsframe); + sz.height = frame_resize_pixelwise ? 1 : FRAME_LINE_HEIGHT (emacsframe); + [[self window] setResizeIncrements:sz]; + if (fs_state == FULLSCREEN_BOTH) { [self toggleFullScreen:self]; -- 2.39.2