show hidden windows when they should (eg. when the pointer is warped to them)

from aon@iki.fi via bernd@
This commit is contained in:
jasper 2007-05-29 22:38:44 +00:00
parent a2e344b05f
commit 4f2fd05371

View File

@ -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;
}
if (cc->state == IconicState)
client_unhide(cc);
else
client_raise(cc);
xu_ptr_setpos(cc->pwin, x, y);
}