summaryrefslogtreecommitdiff
path: root/app/cwm/client.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2011-02-13 20:09:58 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2011-02-13 20:09:58 +0000
commit66b14e06323b89c08fb543a4ac71acb1c78bc579 (patch)
tree17b8702c255b80646c7b599dfc08c051be5e9a34 /app/cwm/client.c
parent857d7553389aceda4343be1ba99dc271690eadcb (diff)
if we are saving the pointer location for a specific client, make sure
that if it is not already inbounds, put it in the default location, which happens to be inbounds. behavior noticed by Thomas Pfaff while maximizing and un-maximizing a window, leaving the pointer behind and causing client_cycle() to be a bit lost. ok oga@
Diffstat (limited to 'app/cwm/client.c')
-rw-r--r--app/cwm/client.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/cwm/client.c b/app/cwm/client.c
index dd2860830..536bcf658 100644
--- a/app/cwm/client.c
+++ b/app/cwm/client.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: client.c,v 1.76 2010/05/22 22:10:31 okan Exp $
+ * $Id: client.c,v 1.77 2011/02/13 20:09:57 okan Exp $
*/
#include <sys/param.h>
@@ -435,6 +435,9 @@ client_ptrsave(struct client_ctx *cc)
if (client_inbound(cc, x, y)) {
cc->ptr.x = x;
cc->ptr.y = y;
+ } else {
+ cc->ptr.x = -1;
+ cc->ptr.y = -1;
}
}