From 38a1b9fcca9bdce65a7f8bf8e92f79137ce9f471 Mon Sep 17 00:00:00 2001 From: hyousatsu Date: Sat, 1 Mar 2025 02:33:18 -0500 Subject: [PATCH] dtwm: manage windows properly to avoid potential segmentation faults. --- cde/programs/dtwm/WmManage.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cde/programs/dtwm/WmManage.c b/cde/programs/dtwm/WmManage.c index cfdd6d87e..64b6c37a1 100644 --- a/cde/programs/dtwm/WmManage.c +++ b/cde/programs/dtwm/WmManage.c @@ -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