From: Robert Pluim <rpluim@gmail.com>
To: Alan Third <alan@idiocy.org>
Cc: emacs-devel@gnu.org
Subject: Re: scratch/ns/refactor cc9dbaf 4/6: Fix macOS live resize drawing
Date: Wed, 23 Jun 2021 16:32:47 +0200 [thread overview]
Message-ID: <878s30slbk.fsf@gmail.com> (raw)
In-Reply-To: <YNM/rEJUE73y/eQd@idiocy.org> (Alan Third's message of "Wed, 23 Jun 2021 15:05:32 +0100")
>>>>> On Wed, 23 Jun 2021 15:05:32 +0100, Alan Third <alan@idiocy.org> said:
Alan> Hi Robert, can you try uncommenting the code in layoutSublayersOfLayer
Alan> and see if that fixes it?
Hi Alan, this seems to do the job:
diff --git i/src/nsterm.m w/src/nsterm.m
index b5bfb242d5..5298466f27 100644
--- i/src/nsterm.m
+++ w/src/nsterm.m
@@ -8056,14 +8056,14 @@ - (void)layoutSublayersOfLayer:(CALayer *)layer
however I can't understand why it would be different from
viewWillDraw. I'll leave this commented out for now, but if
nobody reports a crash it can be removed. */
- // bool owfi = waiting_for_input;
- // waiting_for_input = 0;
- // block_input ();
+ bool owfi = waiting_for_input;
+ waiting_for_input = 0;
+ block_input ();
redisplay ();
- // unblock_input ();
- // waiting_for_input = owfi;
+ unblock_input ();
+ waiting_for_input = owfi;
}
}
#endif
Robert
--
prev parent reply other threads:[~2021-06-23 14:32 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20210620155625.12886.44156@vcs0.savannah.gnu.org>
[not found] ` <20210620155629.258B620B76@vcs0.savannah.gnu.org>
2021-06-23 12:37 ` scratch/ns/refactor 06d9e72 5/6: Move NS port toolbar handling to the window Robert Pluim
2021-06-23 14:27 ` Alan Third
2021-06-23 14:57 ` Robert Pluim
2021-06-23 16:06 ` Alan Third
2021-06-24 13:58 ` Robert Pluim
2021-06-24 14:05 ` Alan Third
2021-06-24 14:07 ` Alan Third
2021-06-24 14:15 ` Robert Pluim
2021-06-24 14:16 ` Alan Third
2021-06-24 14:32 ` Alan Third
2021-06-24 14:59 ` Robert Pluim
2021-06-24 14:11 ` Robert Pluim
[not found] ` <20210620155628.D095320B76@vcs0.savannah.gnu.org>
2021-06-23 13:33 ` scratch/ns/refactor cc9dbaf 4/6: Fix macOS live resize drawing Robert Pluim
2021-06-23 14:05 ` Alan Third
2021-06-23 14:32 ` Robert Pluim [this message]
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=878s30slbk.fsf@gmail.com \
--to=rpluim@gmail.com \
--cc=alan@idiocy.org \
--cc=emacs-devel@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.