From: martin rudalics <rudalics@gmx.at>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: make-pointer-invisible on Windows
Date: Mon, 29 Jun 2015 11:45:49 +0200 [thread overview]
Message-ID: <559113CD.2070803@gmx.at> (raw)
In-Reply-To: <83wpyn6g47.fsf@gnu.org>
> No mystery here, it turns out. On XP, we get the WM_ERASEBKGND
> message when (portions of) the Emacs frame previously covered by other
> windows are uncovered. In response, we erase the rectangle specified
> by the message, and we do that from the input thread, i.e. this works
> even if the main thread is busy.
I don't think it's worth changing this but in principle we could erase
from the main thread as well? That is, erasing without painting doesn't
make much sense anyway.
> WM_ERASEBKGND is immediately
> followed by WM_PAINT, but the latter is passed for execution by the
> main thread, and that thread is busy. This is why you wind up with an
> empty rectangle.
>
> On Windows 7, neither WM_ERASEBKGND nor WM_PAINT are sent, except when
> the Emacs frame is moved or resized. So we don't erase the rectangle,
> and the text remains on screen.
So you do get a blank rectangle when you (de-)maximze the frame I
suppose.
> Not an easy one: we'd need to handle several expose events for
> different rectangles at once. Given that X doesn't support this, I
> see no reason to invest any efforts there.
Agreed.
martin
next prev parent reply other threads:[~2015-06-29 9:45 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-24 9:17 make-pointer-invisible on Windows martin rudalics
2015-06-24 14:50 ` Eli Zaretskii
2015-06-24 17:40 ` martin rudalics
2015-06-24 19:21 ` Eli Zaretskii
2015-06-25 6:36 ` martin rudalics
2015-06-25 15:02 ` Eli Zaretskii
2015-06-26 6:55 ` martin rudalics
2015-06-26 8:43 ` Eli Zaretskii
2015-06-26 9:15 ` martin rudalics
2015-06-26 9:39 ` Eli Zaretskii
2015-06-26 10:14 ` martin rudalics
2015-06-26 10:24 ` Eli Zaretskii
2015-06-28 14:52 ` Eli Zaretskii
2015-06-29 9:46 ` martin rudalics
2015-06-28 14:51 ` Eli Zaretskii
2015-06-29 9:45 ` martin rudalics [this message]
2015-06-29 14:43 ` Eli Zaretskii
2015-06-29 17:16 ` martin rudalics
2015-06-29 17:40 ` Eli Zaretskii
2015-06-30 6:01 ` martin rudalics
2015-06-30 15:09 ` Eli Zaretskii
2015-07-02 13:21 ` martin rudalics
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=559113CD.2070803@gmx.at \
--to=rudalics@gmx.at \
--cc=eliz@gnu.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.