aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2024-01-09 15:47:41 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-01-09 15:47:41 +0000
commita2283c822971cc22db01a6702408aa69e0510448 (patch)
tree44ea93f75e7539b98da47b7d451930f20ed89f5e /input.c
parentslave: ignore return value of chdir() (diff)
wayland: surface_scale_explicit_width_height(): dont assert width/height are valid for scale, take 2
764248bb0d846f65c20931024c1f4adca57aae29 modified wayl_surface_scale_explicit_width_height() to not assert the surface size is valid for the given scaling factor. This, since that function is only used when scaling a mouse pointer surface. However, that commit only updated the code path run when fractional scaling is available (i.e. when the compositor implements the fractional-scale-v1 protocol). The legacy code path, that does integer scaling, was still asserting the surface width/height were divisible with the scaling factor. For the same reasons this isn't true with fractional scaling available, it's not true with integer scaling. Fix by skipping the assertions. This patch also converts the assertions to more verbose BUG() calls, that prints more information on the numbers involved. Closes #1573
Diffstat (limited to 'input.c')
0 files changed, 0 insertions, 0 deletions