mirror of
https://github.com/swaywm/sway.git
synced 2025-11-20 06:59:46 -05: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
|
|
@ -12,7 +12,6 @@
|
|||
#include "sway/input/input-manager.h"
|
||||
#include "sway/input/seat.h"
|
||||
#include "sway/output.h"
|
||||
#include "sway/server.h"
|
||||
#include "sway/tree/arrange.h"
|
||||
#include "sway/tree/container.h"
|
||||
#include "sway/tree/view.h"
|
||||
|
|
@ -573,8 +572,6 @@ struct sway_view *view_from_wlr_xwayland_surface(
|
|||
}
|
||||
|
||||
void handle_xwayland_surface(struct wl_listener *listener, void *data) {
|
||||
struct sway_server *server = wl_container_of(listener, server,
|
||||
xwayland_surface);
|
||||
struct wlr_xwayland_surface *xsurface = data;
|
||||
|
||||
if (xsurface->override_redirect) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue