about summary refs log tree commit diff
path: root/client.c
diff options
context:
space:
mode:
authorjasper <jasper>2007-05-29 22:38:44 +0000
committerjasper <jasper>2007-05-29 22:38:44 +0000
commit9b04f2582ba67e3cd4c60d93758b3ac298a432d2 (patch)
tree25a3070fcdae80094b9ccdf0fc6e8a68d34d3aba /client.c
parent5a0f777c6f9b3d9a0d46b933ead17a26b10295e9 (diff)
downloadcwm-9b04f2582ba67e3cd4c60d93758b3ac298a432d2.tar.gz
cwm-9b04f2582ba67e3cd4c60d93758b3ac298a432d2.tar.xz
cwm-9b04f2582ba67e3cd4c60d93758b3ac298a432d2.zip
show hidden windows when they should (eg. when the pointer is warped to them)
from aon@iki.fi via bernd@
Diffstat (limited to 'client.c')
-rw-r--r--client.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/client.c b/client.c
index c158503..efaa925 100644
--- a/client.c
+++ b/client.c
@@ -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);
 }