all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Third <alan@idiocy.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 30699@debbugs.gnu.org, aaronjensen@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	[thread overview]
Message-ID: <20180313121904.GA79707@breton.holly.idiocy.org> (raw)
In-Reply-To: <20180312234239.GA77657@breton.holly.idiocy.org>

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





  reply	other threads:[~2018-03-13 12:19 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-04 17:38 bug#30699: 26.0.91; buffer contents flicker on macOS frames when frames are resized Aaron Jensen
2018-03-04 20:27 ` Alan Third
2018-03-04 21:34   ` Alan Third
2018-03-05  2:06     ` Aaron Jensen
2018-03-05  3:27       ` Eli Zaretskii
2018-03-05  5:21         ` Aaron Jensen
2018-03-05 16:01           ` Eli Zaretskii
2018-03-05 16:21             ` Aaron Jensen
2018-03-05 18:00               ` Eli Zaretskii
2018-03-05 19:23                 ` Alan Third
2018-03-05 19:53                   ` Eli Zaretskii
2018-03-06 22:55                     ` Alan Third
2018-03-07 17:26                       ` Eli Zaretskii
2018-03-07 20:26                         ` Alan Third
2018-03-08 19:15                           ` Eli Zaretskii
2018-03-09 12:09                             ` Alan Third
2018-03-09 13:32                               ` Eli Zaretskii
2018-03-09 23:24                                 ` Alan Third
2018-03-10  0:25                                   ` Alan Third
2018-03-10  1:18                                     ` Aaron Jensen
2018-03-10  8:30                                     ` Eli Zaretskii
2018-03-10 23:07                                       ` Alan Third
2018-03-11 16:29                                         ` Eli Zaretskii
2018-03-12  0:46                                           ` Alan Third
2018-03-12 16:39                                             ` Eli Zaretskii
2018-03-12 23:42                                               ` Alan Third
2018-03-13 12:19                                                 ` Alan Third [this message]
2018-03-13 16:56                                                   ` Eli Zaretskii
2018-03-13 20:18                                                     ` Alan Third
2018-03-13 15:34                                             ` Aaron Jensen
2018-03-14 15:08                                               ` Alan Third
2018-03-19 15:15                                                 ` Alan Third
2018-03-19 15:27                                                   ` Eli Zaretskii
2018-03-19 17:19                                                     ` Alan Third
2018-03-20 21:50                                                       ` Aaron Jensen
2018-03-20 23:22                                                         ` Aaron Jensen
2018-03-21  6:32                                                         ` Eli Zaretskii
2018-03-21 16:27                                                           ` Aaron Jensen
2018-03-10  8:15                                   ` Eli Zaretskii
2018-03-05  7:55     ` Aaron Jensen
2018-03-05 16:12       ` Eli Zaretskii
2018-03-06 23:00       ` Alan Third
2018-03-07 17:26         ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180313121904.GA79707@breton.holly.idiocy.org \
    --to=alan@idiocy.org \
    --cc=30699@debbugs.gnu.org \
    --cc=aaronjensen@gmail.com \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.