diff options
author | M Stoeckl <code@mstoeckl.com> | 2019-01-22 10:07:38 -0500 |
---|---|---|
committer | M Stoeckl <code@mstoeckl.com> | 2019-01-22 10:12:04 -0500 |
commit | 0af5b26e41c5141d4094652133c230d76bf82e56 (patch) | |
tree | 75c61907f094838e23899231ec5ec955c530f692 /sway/desktop/xwayland.c | |
parent | Merge pull request #3494 from ianyfan/commands (diff) | |
download | sway-0af5b26e41c5141d4094652133c230d76bf82e56.tar.gz sway-0af5b26e41c5141d4094652133c230d76bf82e56.tar.zst sway-0af5b26e41c5141d4094652133c230d76bf82e56.zip |
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.
Diffstat (limited to 'sway/desktop/xwayland.c')
-rw-r--r-- | sway/desktop/xwayland.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c index 8dcf4bd6..4ea661f8 100644 --- a/sway/desktop/xwayland.c +++ b/sway/desktop/xwayland.c | |||
@@ -12,7 +12,6 @@ | |||
12 | #include "sway/input/input-manager.h" | 12 | #include "sway/input/input-manager.h" |
13 | #include "sway/input/seat.h" | 13 | #include "sway/input/seat.h" |
14 | #include "sway/output.h" | 14 | #include "sway/output.h" |
15 | #include "sway/server.h" | ||
16 | #include "sway/tree/arrange.h" | 15 | #include "sway/tree/arrange.h" |
17 | #include "sway/tree/container.h" | 16 | #include "sway/tree/container.h" |
18 | #include "sway/tree/view.h" | 17 | #include "sway/tree/view.h" |
@@ -573,8 +572,6 @@ struct sway_view *view_from_wlr_xwayland_surface( | |||
573 | } | 572 | } |
574 | 573 | ||
575 | void handle_xwayland_surface(struct wl_listener *listener, void *data) { | 574 | void handle_xwayland_surface(struct wl_listener *listener, void *data) { |
576 | struct sway_server *server = wl_container_of(listener, server, | ||
577 | xwayland_surface); | ||
578 | struct wlr_xwayland_surface *xsurface = data; | 575 | struct wlr_xwayland_surface *xsurface = data; |
579 | 576 | ||
580 | if (xsurface->override_redirect) { | 577 | if (xsurface->override_redirect) { |