* frame visibility wrong after redisplay
@ 2009-05-21 13:30 David Reitter
2009-05-21 14:23 ` Stefan Monnier
0 siblings, 1 reply; 2+ messages in thread
From: David Reitter @ 2009-05-21 13:30 UTC (permalink / raw)
To: Emacs-Devel devel
[-- Attachment #1: Type: text/plain, Size: 783 bytes --]
I'm still trying to fix #3303, and the problem I am seeing now is that
FRAME_VISIBLE_P returns the wrong value.
In the NS port, but not on GNU/Linux (or perhaps X), I get the
following behavior when evaluating this expression:
(let ((f (selected-frame)))
(make-frame)
(make-frame-invisible f t)
(setq aa2v (frame-visible-p f))
(redisplay)
(setq aa3v (frame-visible-p f)))
(list aa2v aa3v) is, surprisingly, '(nil t).
Why is the frame deemed visible after the redisplay when it is, in
fact, invisible?
What should I look for here?
I think drawrect: is called for the view of that frame, which sets
async_visible (unclear why that's done there). Why?
This is what's causing much pain somewhere else where we need to
decide how to correctly raise it.
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 2193 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: frame visibility wrong after redisplay
2009-05-21 13:30 frame visibility wrong after redisplay David Reitter
@ 2009-05-21 14:23 ` Stefan Monnier
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2009-05-21 14:23 UTC (permalink / raw)
To: David Reitter; +Cc: Emacs-Devel devel
> I'm still trying to fix #3303, and the problem I am seeing now is that
> FRAME_VISIBLE_P returns the wrong value.
> In the NS port, but not on GNU/Linux (or perhaps X), I get the following
> behavior when evaluating this expression:
> (let ((f (selected-frame)))
> (make-frame)
> (make-frame-invisible f t)
> (setq aa2v (frame-visible-p f))
> (redisplay)
> (setq aa3v (frame-visible-p f)))
> (list aa2v aa3v) is, surprisingly, '(nil t).
> Why is the frame deemed visible after the redisplay when it is, in
> fact, invisible?
> What should I look for here?
> I think drawrect: is called for the view of that frame, which sets
> async_visible (unclear why that's done there). Why?
> This is what's causing much pain somewhere else where we need to decide how
> to correctly raise it.
If you run under GDB, you should be able to place a watchpoint on the
`visible' (and `async_visible') field of frame `f', so you'll be
immediately told when those fields change. The backtraces at those
times should give us a good indication of when/where the visibility is
incorrectly set back to t.
Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-05-21 14:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-21 13:30 frame visibility wrong after redisplay David Reitter
2009-05-21 14:23 ` Stefan Monnier
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).