mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-28 10:02:22 +00:00
6d197eef94
Limiting the position to (x + width - 1, y + height - 1) created a 1px
"dead zone" at monitor edges, noticeable with high-resolution mice with
motion deltas of <1px.
See: https://github.com/swaywm/sway/issues/8110
Using (x + width - 1/65536, y + height - 1/65536) instead should make
the "dead zone" small enough to be unobservable, while the value 1/65536
is still large enough to avoid rounding to zero (due to loss of
significant digits) in simple floating-point calculations.
This does expose a client-side bug in Qt layer-shell applications,
noticeable in right/bottom panels which do not accept positions beyond
(x + width - 1, x + height - 1) as valid - thus driving the cursor
to the bottom/right of the screen to click on the panel does not work.
I don't have a good workaround for this, and probably it needs to be
fixed in Qt itself.
Fixes:
|
||
---|---|---|
.. | ||
addon.c | ||
array.c | ||
box.c | ||
env.c | ||
global.c | ||
log.c | ||
meson.build | ||
rect_union.c | ||
region.c | ||
set.c | ||
shm.c | ||
time.c | ||
token.c | ||
transform.c | ||
utf8.c |