mirror of
https://github.com/swaywm/sway.git
synced 2025-04-03 02:47:46 +03: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
|
@ -85,7 +85,6 @@ static struct pool_buffer *create_buffer(struct wl_shm *shm,
|
|||
close(fd);
|
||||
unlink(name);
|
||||
free(name);
|
||||
fd = -1;
|
||||
|
||||
buf->size = size;
|
||||
buf->width = width;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue