aboutsummaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorjasper2007-05-29 22:38:44 +0000
committerjasper2007-05-29 22:38:44 +0000
commit575d97782b8b99bf5b2fc3db818ef5f796e7b4af (patch)
tree90a70eb1b2a1627f9c88bb65ba3841f8967a6fb3 /client.c
parent41eb6359d30fd7e1d63e4fc439cf56636f345712 (diff)
downloadcwm-575d97782b8b99bf5b2fc3db818ef5f796e7b4af.tar.gz
show hidden windows when they should (eg. when the pointer is warped to them)
from aon@iki.fi via bernd@
Diffstat (limited to '')
-rw-r--r--client.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/client.c b/client.c
index a4982b0..0f53d38 100644
--- a/client.c
+++ b/client.c
@@ -4,7 +4,7 @@
* Copyright (c) 2004 Marius Aamodt Eriksen <marius@monkey.org>
* All rights reserved.
*
- * $Id: client.c,v 1.3 2007/05/29 22:35:04 jasper Exp $
+ * $Id: client.c,v 1.4 2007/05/29 22:38:44 jasper Exp $
*/
#include "headers.h"
@@ -409,7 +409,11 @@ client_ptrwarp(struct client_ctx *cc)
y = cc->geom.height / 2;
}
- client_raise(cc);
+ if (cc->state == IconicState)
+ client_unhide(cc);
+ else
+ client_raise(cc);
+
xu_ptr_setpos(cc->pwin, x, y);
}