aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-09-27 20:07:08 -0400
committerKirill Primak <vyivel@eclair.cafe>2022-10-10 08:09:55 +0000
commitdd9cfd3e2f38c8f67694961acdc6b68222d067ea (patch)
tree754f1e1bcb342df1d68078311b0775f6caa85261 /include
parent954974950726f3b6dbc8c5341722c942eade07f1 (diff)
wlr_scene: Be resilient against overflow conditions
If the area calculations for output overlap overflow a signed int, we may not consider it to be a primary output. Turn this into an unsigned type so this happens less frequently. Additionally, it is possible the overflow would produce 0, we can handle this by simply changing the comparison to more than or equal. While we're here, let's assert that we always assign a primary output if there are any intersecting outputs.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions