From: martin rudalics <rudalics@gmx.at>
To: platon7pronko@gmail.com, 48413@debbugs.gnu.org
Subject: bug#48413: 28.0.50; emacs does not repaint the window after switching workspaces in Xmonad
Date: Fri, 14 May 2021 11:50:38 +0200 [thread overview]
Message-ID: <4709c228-9735-4f49-b930-3189ca6c0eed@gmx.at> (raw)
In-Reply-To: <ceb3db40-a726-f1c5-4e39-baa1e8bcfc32@gmail.com>
Thanks for the forensics. They clarify things with Bug#48268.
> Specifically the commenting of SET_FRAME_VISIBLE(f, 1) causes the problem (if I uncomment that line, buffer redisplay starts to work correctly).
>
> Trying the same with XFCE doesn't give the error. I compared the sequences of X events received under different WMs, here's the lists (without "other", "MotionNotify" and key events, for brevity):
>
> Xmonad:
> 1. When switching to different workspace:
> - FocusOut x3
> - UnmapNotify x1
> - LeaveNotify x2
> - PropertyNotify x2
> 2. When switching back:
> - MapNotify x1
Can you tell me why we do not SET_FRAME_VISIBLE when receiving the
MapNotify event here? Probably because we are not yet visible - though
mapped but invisible is a queer state.
> - VisibilityNotify x3
Maybe we should process VisibilityNotify events.
> - Expose x4
Relying on these for setting visibility will fail for anyone who doesn't
send us an Expose event.
> - EnterNotify x2
> - FocusIn x2
> - ClientMessage x1
> - PropertyNotify x1
> - FocusIn x1
>
> XFCE:
> 1. When switching to different workspace:
> - FocusOut x2
> - FocusIn x1
> - FocusOut x2
> - LeaveNotify x2
> - UnmapNotify x1
> - PropertyNotify x3
> 2. When switching back:
> - VisibilityNotify x3
> - Expose x4
> - EnterNotify x2
> - PropertyNotify x2
> - FocusIn x2
> - ClientMessage x1
> - PropertyNotify x2
> - FocusOut x2
> - FocusIn x1
> - FocusOut x2
> - FocusIn x2
So here we don't get a MapNotify anyway when switching back and using
VisibilityNotify should be TRT.
martin
next prev parent reply other threads:[~2021-05-14 9:50 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-14 8:32 bug#48413: 28.0.50; emacs does not repaint the window after switching workspaces in Xmonad Platon Pronko
2021-05-14 9:50 ` martin rudalics [this message]
2021-05-14 15:13 ` martin rudalics
2021-05-14 15:28 ` Platon Pronko
2021-05-14 15:56 ` martin rudalics
2021-05-14 16:07 ` Platon Pronko
2021-05-15 7:55 ` martin rudalics
2021-05-15 8:01 ` Platon Pronko
2021-05-15 8:16 ` martin rudalics
2021-05-15 8:28 ` Platon Pronko
2021-09-29 12:07 ` Stefan Kangas
2021-09-29 14:10 ` Platon Pronko
2021-09-29 14:29 ` Stefan Kangas
2021-09-30 16:16 ` martin rudalics
2021-05-14 16:03 ` Basil L. Contovounesios
2021-05-15 7:55 ` martin rudalics
2021-05-14 10:08 ` Basil L. Contovounesios
2021-05-14 11:05 ` Basil L. Contovounesios
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=4709c228-9735-4f49-b930-3189ca6c0eed@gmx.at \
--to=rudalics@gmx.at \
--cc=48413@debbugs.gnu.org \
--cc=platon7pronko@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).