summaryrefslogtreecommitdiff
path: root/clients
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2015-08-26 17:13:26 -0500
committerBryce Harrington <bryce@osg.samsung.com>2015-10-23 12:45:55 -0700
commit5d13548c7e0da6bbd9a5ee2edc1b94f6b36133ec (patch)
tree5879ca4639a5ad370e18766c4cd6decd33c62551 /clients
parentfa41eec4f77690ef19aa90f16850d5d5dd964490 (diff)
downloadweston-5d13548c7e0da6bbd9a5ee2edc1b94f6b36133ec.tar.gz
clients: try harder to discard motion after resize
If we're going to ignore motion below and to the right when coming out of maximize, we should probably also ignore it above and to the left. Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Tested-by: Luis de Bethencourt <luisbg@osg.samsung.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
Diffstat (limited to 'clients')
-rw-r--r--clients/window.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/clients/window.c b/clients/window.c
index d8f2ee26..6941201e 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -2748,7 +2748,9 @@ pointer_handle_motion(void *data, struct wl_pointer *pointer,
* still have a pending motion event that the compositor has picked
* based on the old surface dimensions
*/
- if (sx > window->main_surface->allocation.width ||
+ if (sx < window->main_surface->allocation.x ||
+ sy < window->main_surface->allocation.y ||
+ sx > window->main_surface->allocation.width ||
sy > window->main_surface->allocation.height)
return;