mirror of
https://github.com/swaywm/sway.git
synced 2026-03-28 07:58:38 -04:00
Fix dead stores found by scan-build
In addition to removing unused code, two minor problems are fixed: (1) `resize set` and `resize adjust` did not error when given too many arguments. (2) `orientation` was incorrectly overridden to be 'U' for scroll events in the swaybar tray `handle_click` function.
This commit is contained in:
parent
71a37ad186
commit
0af5b26e41
11 changed files with 14 additions and 32 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue