mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
This fixes the issue that a scrollbar in a maximized GTK/Chromium window cannot be dragged when cursor is on the right/bottom edge of the output. The issue was caused by rounding in `wl_fixed_from_double()` ([1]); if `wlr_cursor_move()` constrains the x-position of the cursor to `(output width)-1/65536`, `wl_fixed_from_double()` converts it to just `(output width)`, which is perceived as outside of the window by GTK/Chromium. Using 1/256 (minimal unit of `wl_fixed_t`) instead of 1/65536 avoids this rounding issue. [1]: |
||
|---|---|---|
| .. | ||
| addon.c | ||
| array.c | ||
| box.c | ||
| env.c | ||
| global.c | ||
| log.c | ||
| matrix.c | ||
| meson.build | ||
| rect_union.c | ||
| region.c | ||
| set.c | ||
| shm.c | ||
| time.c | ||
| token.c | ||
| transform.c | ||
| utf8.c | ||