From: "Gerd Möllmann" <gerd.moellmann@gmail.com>
To: Po Lu <luangruo@yahoo.com>
Cc: 56559@debbugs.gnu.org
Subject: bug#56559: 29.0.50; Invalid CGContextSaveState on NS
Date: Fri, 15 Jul 2022 15:25:01 +0200 [thread overview]
Message-ID: <2A6EEE0E-8DA9-4C88-970C-A13ACCA9F914@gmail.com> (raw)
In-Reply-To: <8735f2oaoq.fsf@yahoo.com>
Can I please ask another question? You seem to be the only one here knowing the NS stuff.
I'm looking at the ns_focus/ns_unfocus stuff,. From just eading the code, it appears to me that nested calls liek so:
1 ns_focus in ns_draw_window_cursor
2 ns_focus in draw_.*
3 ns_unfocus in draw_.*
4 ...
5 ns_unfocus in ns_draw_window_cursor
are not supported, or is the intention that they are?
My hypthesis is the ns_unfocus in line 3 above undoes the ns_focus from line 1, or parts thereof, I haven't checked that thoroughly.
To make that a theory, I've added an ns_focus like so
ns_focus(f, NULL, 0);
[NSBezierPath strokeRect:NSInsetRect(r, 0.5, 0.5)];
and voilà the error is gone.
next prev parent reply other threads:[~2022-07-15 13:25 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-14 15:08 bug#56559: 29.0.50; Invalid CGContextSaveState on NS Gerd Möllmann
2022-07-15 2:43 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-07-15 9:50 ` Gerd Möllmann
2022-07-15 9:54 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-07-15 10:33 ` Gerd Möllmann
2022-07-15 11:52 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-07-15 13:25 ` Gerd Möllmann [this message]
2022-07-15 14:01 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-07-15 14:12 ` Gerd Möllmann
2022-07-16 3:05 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-07-15 13:05 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-07-15 13:14 ` Gerd Möllmann
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=2A6EEE0E-8DA9-4C88-970C-A13ACCA9F914@gmail.com \
--to=gerd.moellmann@gmail.com \
--cc=56559@debbugs.gnu.org \
--cc=luangruo@yahoo.com \
/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.