aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/workspace_layout.c
diff options
context:
space:
mode:
authorBrian Ashworth <bosrsf04@gmail.com>2019-02-08 22:29:35 -0500
committeremersion <contact@emersion.fr>2019-02-09 09:24:43 +0100
commit995b6edab6fab33668a9bd320631b6ab65dc10c6 (patch)
treea7b42df4d2130842803718811f31f468fe1090c1 /sway/commands/workspace_layout.c
parentf5190d1f797f5a9d0596ab6d31240a0e179ac457 (diff)
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/workspace_layout.c')
0 files changed, 0 insertions, 0 deletions