1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

dtwm: manage windows properly to avoid potential

segmentation faults.
This commit is contained in:
hyousatsu 2025-03-01 02:33:18 -05:00
parent e4c1e173fa
commit 38a1b9fcca

View file

@ -443,11 +443,6 @@ ManageWindow (WmScreenData *pSD, Window clientWindow, long manageFlags)
return;
}
ApplyPrematureClientMessages (pCD);
if (!HasProperty (pCD, wmGD.xa__NET_WM_STATE))
UpdateNetWmState (pCD->client, NULL, 0, _NET_WM_STATE_REMOVE);
/*
* Send config notify if the client's been moved/resized
*/
@ -745,6 +740,11 @@ ManageWindow (WmScreenData *pSD, Window clientWindow, long manageFlags)
CurrentTime, NULL, 0);
}
ApplyPrematureClientMessages (pCD);
if (!HasProperty (pCD, wmGD.xa__NET_WM_STATE))
UpdateNetWmState (pCD->client, NULL, 0, _NET_WM_STATE_REMOVE);
/*
* Free the initial property list. This will force
* reads of properties that change after the initial