Cygwin/X: Ensure WM_STATE atom exists in multiwindow mode
Workaround a bug in iiimxcf (assuming the WM_STATE atom exists), which can cause many Solaris clients to simply fail with a BadAtom error Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
parent
aa860552fd
commit
ec5417b965
|
@ -1012,6 +1012,16 @@ winMultiWindowXMsgProc (void *pArg)
|
||||||
"WM_CHANGE_STATE",
|
"WM_CHANGE_STATE",
|
||||||
False);
|
False);
|
||||||
|
|
||||||
|
/*
|
||||||
|
iiimxcf had a bug until 2009-04-27, assuming that the
|
||||||
|
WM_STATE atom exists, causing clients to fail with
|
||||||
|
a BadAtom X error if it doesn't.
|
||||||
|
|
||||||
|
Since this is on in the default Solaris 10 install,
|
||||||
|
workaround this by making sure it does exist...
|
||||||
|
*/
|
||||||
|
XInternAtom(pProcArg->pDisplay, "WM_STATE", 0);
|
||||||
|
|
||||||
/* Loop until we explicitly break out */
|
/* Loop until we explicitly break out */
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user