unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Juanma Barranquero <lekktu@gmail.com>
Cc: 16967@debbugs.gnu.org
Subject: bug#16967: frame related race condition
Date: Mon, 10 Mar 2014 14:11:15 +0100	[thread overview]
Message-ID: <531DB9F3.2030508@gmx.at> (raw)
In-Reply-To: <CAAeL0STxpC-QxL4AghUH0raJo-BoWcmXvocz1q7bq3HKrw7uxw@mail.gmail.com>

 >> When we get a SIZE_RESTORED message we have to make the frame visible.
 >
 > Well, yeah, no. I don't know why an invisible frame gets a
 > SIZE_RESTORED message, but as long as Emacs thinks it's invisible, no,
 > it shouldn't be made visible. The WM is at the service of Emacs, not
 > the other way around.

No.  But the `make-frame' in

(let* ((c (selected-frame))
        (f (make-frame)))
   (sit-for 0)
   (select-frame-set-input-focus f)
   (sit-for 0)
   (delete-frame c))

should create a normally visible frame f.  The fact that this frame has
its visibility set to zero at the time you `delete-frame' c indicates
that we have a pretty awful bug.  The implications of this are
substantial because SET_FRAME_VISIBLE has to redisplay_other_windows and
if that is not done, the consequences are not restricted to the toy
scenario you gave.

Lately I frequently noticed that an Emacs frame that was for some time
hidden by other applications and subsequently became exposed by deleting
their windows was not redrawn and I would like to know whether this was
the reason.  ISTR that others noted the same or a similar misbehavior.

 > Or are you saying that you find acceptable being unable to make an
 > invisible frame?

No.  But we apparently have the problem that Emacs on Windows thinks
that a frame is invisible although it isn't.  And we have to find out
where this notion of invisibility gets introduced - maybe it's easy to
spot it, maybe, likely it's part of my pixelwise changes, and we can
withdraw my "fix" soon.  But till then we have to live with the
situation that on Windows invisible Emacs frames are visible :-(

martin





  reply	other threads:[~2014-03-10 13:11 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-08 16:19 bug#16967: frame related race condition Juanma Barranquero
2014-03-10  9:04 ` martin rudalics
2014-03-10 10:32   ` martin rudalics
2014-03-10 11:08     ` Juanma Barranquero
2014-03-10 11:45       ` martin rudalics
2014-03-10 12:39         ` Juanma Barranquero
2014-03-10 13:11           ` martin rudalics [this message]
2014-03-10 14:48             ` Juanma Barranquero
2014-03-10 19:04               ` martin rudalics
2014-03-10 21:18                 ` Juanma Barranquero
2014-03-11  8:07                   ` martin rudalics
2014-03-11 21:13                     ` Juanma Barranquero
2014-03-12 14:06                     ` Stefan Monnier
2014-03-14 11:31                       ` martin rudalics
2014-03-14 13:32                         ` Stefan Monnier
2014-03-11  1:33             ` Stefan Monnier
2014-03-11  8:07               ` martin rudalics
2019-10-02  1:47 ` Juanma Barranquero

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=531DB9F3.2030508@gmx.at \
    --to=rudalics@gmx.at \
    --cc=16967@debbugs.gnu.org \
    --cc=lekktu@gmail.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 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).