diff options
author | okan | 2011-02-13 20:09:57 +0000 |
---|---|---|
committer | okan | 2011-02-13 20:09:57 +0000 |
commit | 99e0364d8e62969ed9695a71e281f69123eb4c8c (patch) | |
tree | 210637ac5d77bed66971d2cd947c25f6b9861a60 | |
parent | 5e6fd216c9662fc47cdd29ca0d5400e5dce8c176 (diff) | |
download | cwm-99e0364d8e62969ed9695a71e281f69123eb4c8c.tar.gz |
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 '')
-rw-r--r-- | client.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; } } |