wlroots/util
tokyo4j 19c5d22beb util/box.c: use 1/256 instead of 1/65536 in wlr_box_closest_point()
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]: f246e619d1
2025-10-16 13:46:27 +00:00
..
addon.c util/addon: make wlr_addon_set_finish() safer 2023-10-08 11:06:09 +00:00
array.c util/array: unclutter 2022-08-29 13:48:42 +00:00
box.c util/box.c: use 1/256 instead of 1/65536 in wlr_box_closest_point() 2025-10-16 13:46:27 +00:00
env.c util/env: make env_parse_switch() return a size_t 2022-12-06 16:14:18 +01:00
global.c util/global: fix memory leak on display destroy in wlr_global_destroy_safe 2022-06-07 18:18:11 +02:00
log.c Define _POSIX_C_SOURCE globally 2024-02-15 15:41:12 +01:00
matrix.c util/matrix: add matrix_invert() 2025-03-30 16:21:26 +02:00
mem.c util/mem: Move memdup to new util/mem.c file 2025-07-17 16:39:58 +01:00
meson.build util/mem: Move memdup to new util/mem.c file 2025-07-17 16:39:58 +01:00
rect_union.c util: add struct to track union of rectangles 2023-10-05 11:45:32 +00:00
region.c util/region: forbid "shrinking" a region with wlr_region_expand() 2022-12-09 16:46:36 +00:00
set.c util/set: overhaul 2022-08-29 13:48:42 +00:00
shm.c Define _POSIX_C_SOURCE globally 2024-02-15 15:41:12 +01:00
time.c util/time: Move NSEC_PER_SEC to header 2024-11-07 10:22:56 +01:00
token.c Define _POSIX_C_SOURCE globally 2024-02-15 15:41:12 +01:00
transform.c util/transform: add wlr_output_transform_coords() 2023-11-23 11:07:34 +01:00
utf8.c xdg-toplevel: check that title provided actually is UTF-8 2023-11-22 22:03:00 +03:00