aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/bar/mode.c
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-02-08 22:29:35 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2019-02-11 10:22:53 -0500
commit243d5a3a435c2786ecfa305e30fbca658e1861ff (patch)
treea7b42df4d2130842803718811f31f468fe1090c1 /sway/commands/bar/mode.c
parentbar_cmd_modifier: add support for none (diff)
downloadsway-243d5a3a435c2786ecfa305e30fbca658e1861ff.tar.gz
sway-243d5a3a435c2786ecfa305e30fbca658e1861ff.tar.zst
sway-243d5a3a435c2786ecfa305e30fbca658e1861ff.zip
container_at_stacked: skip titles when zero pixels
It is possible to make the title bars have a zero pixel height while stacked, by using a blank font and no padding. This causes a division by zero when attempting to calculate the child index in container_at_stacked, which then results in a segfault when attempting to access the child at that bad index (INT_MIN). This just skips the check to see if the cursor is over a title bar of a child of a stacked container when the title bar height is zero since there will be no title bars.
Diffstat (limited to 'sway/commands/bar/mode.c')
0 files changed, 0 insertions, 0 deletions