]> git.mdlowis.com Git - proto/labwc.git/commit
src/ssd: use view->ssd_titlebar_hidden for ssd_thickness calculations
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Sun, 17 Sep 2023 20:41:46 +0000 (22:41 +0200)
committerJohan Malm <johanmalm@users.noreply.github.com>
Thu, 21 Sep 2023 21:21:19 +0000 (22:21 +0100)
commite8ec8ea7ff9954f7e62f4211c065a38130ac9355
tree8d1735b69860e2723f0a21ec0898ba9d0ca01c32
parente5d459aa0cf4b173cd37ecc7267591f544c42800
src/ssd: use view->ssd_titlebar_hidden for ssd_thickness calculations

Before this patch we were using the internal .enabled flag of the titlebar
tree node. This failed due to ssd_thickness() not having view->ssd assigned
when initially called. Instead of assigning view->ssd within ssd_create()
we just always use the view boolean flag directly. This fixes an issue
where a border-only view that has been snapped to an edge or region would
have a gap in the size of the titlebar on top after a Reconfigure.

Fixes #1083
include/ssd.h
src/ssd/ssd.c
src/view.c