dtwm: manage windows properly to avoid potential
segmentation faults.
This commit is contained in:
@@ -443,11 +443,6 @@ ManageWindow (WmScreenData *pSD, Window clientWindow, long manageFlags)
|
|||||||
return;
|
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
|
* Send config notify if the client's been moved/resized
|
||||||
*/
|
*/
|
||||||
@@ -745,6 +740,11 @@ ManageWindow (WmScreenData *pSD, Window clientWindow, long manageFlags)
|
|||||||
CurrentTime, NULL, 0);
|
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
|
* Free the initial property list. This will force
|
||||||
* reads of properties that change after the initial
|
* reads of properties that change after the initial
|
||||||
|
|||||||
Reference in New Issue
Block a user