]> git.mdlowis.com Git - proto/labwc.git/commit
cursor: Do not clamp motion coordinates for XWayland surfaces.
authorJohn Lindgren <john@jlindgren.net>
Sat, 13 Aug 2022 15:36:07 +0000 (11:36 -0400)
committerJohan Malm <johanmalm@users.noreply.github.com>
Tue, 16 Aug 2022 18:31:16 +0000 (19:31 +0100)
commit8e6d37772e0c800867cd497f76b62d8e9ca8b477
treededbee4f7f9d83cbd2afddd546180bbb161bfde8
parent19dea7450b127e7ef4ef8e2c4bb7f7ad94712353
cursor: Do not clamp motion coordinates for XWayland surfaces.

X11 apps expect to be able to receive motion events outside
the window area (this is necessary for client-side move/resize
handles to work properly).  So do not clamp the motion
coordinates for XWayland surfaces.

Before this change, attempting to enlarge an XWayland window
using a client-side resize handle resulted in the window size
lagging behind the mouse cursor quite severely, since each
motion event was in effect allowed to expand the window by
only a few pixels.  The closer the initial button-press was
to the edge of the window, the worse the lag would be.
src/cursor.c