1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-31 01:20:37 -08:00

Respect value of frame_resize_pixelwise when handling fullscreen state.

* src/nsterm.m (handleFS): Respect frame_resize_pixelwise when
setting size increments.
This commit is contained in:
Anders Lindgren 2015-09-28 08:11:14 +02:00 committed by Martin Rudalics
parent 73b0901ce0
commit e55460e53c

View file

@ -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];