Synchronizing _NET_WM_STATE writes and reads
mailinglists at who-t.net
Fri Nov 9 02:07:28 PST 2007
Matthias Käppler wrote:
> Now, calling maximizeWindow() and getWindowStates() immediately after does
> sometimes, but NOT ALWAYS yield the two atoms representing the two states
> that should be set for the given window.
bit hazy on this, but AFAIK the process is something like this:
client changes property
WM is notified
WM applies changes
WM changes property
client is notified
note that the actual changes and setting the properties are two
completely different and disconnected things. if you query the property
in between, then you get your results.
try waiting for the PropertyNotify event and then querying.
btw. XSync is useless here, it only applies to _your_ connection with
the X server, and thus doesn't affect the WM at all.
More information about the xorg