forked from joejulian/gio
c5d4e01e3d
The _NET_WM_STATE protocol description[0] states that to change the window mode for an X11, "To change the state of a mapped window, a Client MUST send a _NET_WM_STATE client message to the root window." and that the window manager in turn "The Window Manager MUST keep this property updated to reflect the current state of the window." However, our X11 implementation did both: send the message _and_ set or deleted the property. This change makes it so only the message is sent. It also replaces toggling the property by setting or clearing, to ensure our mode and the window manager's mode never gets out of sync. Maybe fixes gio#265 [0] https://specifications.freedesktop.org/wm-spec/wm-spec-latest.html#idm46515148826720 Signed-off-by: Elias Naur <mail@eliasnaur.com>