aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/xdg_shell_v6.c
diff options
context:
space:
mode:
authorLibravatar M Stoeckl <code@mstoeckl.com>2019-01-22 10:07:38 -0500
committerLibravatar M Stoeckl <code@mstoeckl.com>2019-01-22 10:12:04 -0500
commit0af5b26e41c5141d4094652133c230d76bf82e56 (patch)
tree75c61907f094838e23899231ec5ec955c530f692 /sway/desktop/xdg_shell_v6.c
parentMerge pull request #3494 from ianyfan/commands (diff)
downloadsway-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/xdg_shell_v6.c')
-rw-r--r--sway/desktop/xdg_shell_v6.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sway/desktop/xdg_shell_v6.c b/sway/desktop/xdg_shell_v6.c
index 553d532d..f11c00b1 100644
--- a/sway/desktop/xdg_shell_v6.c
+++ b/sway/desktop/xdg_shell_v6.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"
@@ -464,8 +463,6 @@ struct sway_view *view_from_wlr_xdg_surface_v6(
464} 463}
465 464
466void handle_xdg_shell_v6_surface(struct wl_listener *listener, void *data) { 465void handle_xdg_shell_v6_surface(struct wl_listener *listener, void *data) {
467 struct sway_server *server = wl_container_of(listener, server,
468 xdg_shell_v6_surface);
469 struct wlr_xdg_surface_v6 *xdg_surface = data; 466 struct wlr_xdg_surface_v6 *xdg_surface = data;
470 467
471 if (xdg_surface->role == WLR_XDG_SURFACE_V6_ROLE_POPUP) { 468 if (xdg_surface->role == WLR_XDG_SURFACE_V6_ROLE_POPUP) {