aboutsummaryrefslogtreecommitdiff
path: root/sway/tree/view.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-01-22 11:04:56 -0500
committerGitHub <noreply@github.com>2019-01-22 11:04:56 -0500
commit04aa41de340b82d4eccc5c0c86fa6f9c178b72d5 (patch)
tree75c61907f094838e23899231ec5ec955c530f692 /sway/tree/view.c
parent71a37ad186ba3080338b2ecb5a3e640600aefc1f (diff)
parent0af5b26e41c5141d4094652133c230d76bf82e56 (diff)
Merge pull request #3496 from mstoeckl/fix-san
Fix dead stores found by scan-build
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r--sway/tree/view.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index edbfca97..8795e04f 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -236,8 +236,6 @@ void view_autoconfigure(struct sway_view *view) {
con->border_bottom = bottom_y != ws->y + ws->height;
}
- double x, y, width, height;
- x = y = width = height = 0;
double y_offset = 0;
// In a tabbed or stacked container, the container's y is the top of the
@@ -253,7 +251,9 @@ void view_autoconfigure(struct sway_view *view) {
con->border_top = false;
}
+ double x, y, width, height;
switch (con->border) {
+ default:
case B_CSD:
case B_NONE:
x = con->x;