winex11drv: improve handling of desktop switches

Rafał Mużyło galtgendo at o2.pl
Fri Sep 15 18:38:47 CDT 2017


This patch is most likely broken in some way, yet it makes wine handle
desktop changes a bit more correctly.

This is a follow up of bug 43691 and the subsequent IRC discussion.
It relies strongly on current implementation of event handling in
winex11drv. Basically, it makes wine ignore changes to IconicState, that
aren't backed by setting _NET_WM_STATE_HIDDEN, which in current
implementation stops wine from sending spurious SC_RESTORE messages upon
switching back to NormalState. This is to (hopefully) handle that part
of EWMH spec regarding second option for implementing virtual desktops.

Signed-off-by: Rafał Mużyło <galtgendo at o2.pl>

PS: CC me with any comments, but I must stress this patch is based on my
*guesstimates*, so not only I might be reading current code wrong, but
I'm also unlikely to come up with a more complex (and correct) solution.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: winex11drv-fix-desktop-switches.patch
Type: text/x-diff
Size: 1822 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20170916/6cd44666/attachment.patch>


More information about the wine-patches mailing list