[PATCH weston 1/2] clients: try harder to discard motion after resize
Derek Foreman
derekf at osg.samsung.com
Wed Aug 26 15:13:26 PDT 2015
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 at osg.samsung.com>
---
clients/window.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/clients/window.c b/clients/window.c
index 0e73f5b..52de248 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;
--
2.4.6
More information about the wayland-devel
mailing list