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@
This commit is contained in:
okan 2011-02-13 20:09:57 +00:00
parent 0884d38e3b
commit 64e62989d0

View File

@ -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;
}
}