summaryrefslogtreecommitdiff
path: root/mcwm.c
diff options
context:
space:
mode:
authorMC <mc@hack.org>2010-07-01 16:45:55 +0200
committerMC <mc@brain.hack.org>2010-07-01 16:45:55 +0200
commit9948cc5e4ccef7d668f53892e452a11d99ef1087 (patch)
tree4ce00e9e9e999204efb1b458b68e2b930b1e50fa /mcwm.c
parent80071fa886792c67dd3760e6a69265d45d9372d0 (diff)
downloadmcwm-9948cc5e4ccef7d668f53892e452a11d99ef1087.zip
Ooops! Deleted the wrong client(s)! Moved delfromworkspace() *into*20100701-3
the comparison block.
Diffstat (limited to 'mcwm.c')
-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);