summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mcwm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mcwm.c b/mcwm.c
index b00486d..94640ca 100644
--- a/mcwm.c
+++ b/mcwm.c
@@ -442,16 +442,16 @@ void forgetwin(xcb_window_t win)
{
client = item->data;
- /* Delete window from workspace list. */
- delfromworkspace(client, curws);
-
/* Now forget about it completely and free allocated data. */
PDEBUG("Win %d == client ID %d\n", win, client->id);
if (win == client->id)
{
/* Found it. */
PDEBUG("Found it. Forgetting...\n");
-
+
+ /* Delete window from workspace list. */
+ delfromworkspace(client, curws);
+
free(item->data);
delitem(&winlist, item);