GNU bug report logs - #30699
26.0.91; buffer contents flicker on macOS frames when frames are resized

Previous Next

Package: emacs;

Reported by: Aaron Jensen <aaronjensen <at> gmail.com>

Date: Sun, 4 Mar 2018 17:39:01 UTC

Severity: normal

Tags: fixed

Found in version 26.0.91

Fixed in version 27.1

Done: Alan Third <alan <at> idiocy.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Alan Third <alan <at> idiocy.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 30699 <at> debbugs.gnu.org, aaronjensen <at> gmail.com
Subject: bug#30699: 26.0.91; buffer contents flicker on macOS frames when frames are resized
Date: Tue, 13 Mar 2018 12:19:04 +0000
On Mon, Mar 12, 2018 at 11:42:39PM +0000, Alan Third wrote:
> So would it be acceptable to just call redisplay after the resize?
> 
> modified   src/nsterm.m
> @@ -7007,6 +7007,7 @@ - (void) updateFrameSize: (BOOL) delay
>           to be a noop.  (bug#28872) */
>        wr = NSMakeRect (0, 0, neww, newh);
>        [view setFrame: wr];
> +      redisplay ();
>  
>        // to do: consider using [NSNotificationCenter postNotificationName:].
>        [self windowDidMove: // Update top/left.

Nah, forget it. I tried it and found an easily reproducible crash.

I think the only solution left is to take a copy of the contents of
the frame, resize, then copy the contents back. I don’t know how to do
that and a quick google search reveals nothing helpful.

Apple assume you’ll always be able to redraw the contents of the
window on resize, afaict, so they don’t provide any way of retaining
the pre‐resize contents.
-- 
Alan Third




This bug report was last modified 7 years and 113 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.