summaryrefslogtreecommitdiff
path: root/app/cwm/client.c
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2007-05-29 22:38:45 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2007-05-29 22:38:45 +0000
commit9642149a8cb8efa406b71e360790474558ecc9f6 (patch)
tree10d27cc696d2d0b44cb8f4b177c02d2d6d8ed87a /app/cwm/client.c
parent48e27d75f4c5ed770152d9c2e9e6ce670c288510 (diff)
show hidden windows when they should (eg. when the pointer is warped to them)
from aon@iki.fi via bernd@
Diffstat (limited to 'app/cwm/client.c')
-rw-r--r--app/cwm/client.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/cwm/client.c b/app/cwm/client.c
index a4982b028..0f53d38a9 100644
--- a/app/cwm/client.c
+++ b/app/cwm/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);
}