summaryrefslogtreecommitdiffstats
path: root/swaybar
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2019-01-22 11:04:56 -0500
committerLibravatar GitHub <noreply@github.com>2019-01-22 11:04:56 -0500
commit04aa41de340b82d4eccc5c0c86fa6f9c178b72d5 (patch)
tree75c61907f094838e23899231ec5ec955c530f692 /swaybar
parentMerge pull request #3494 from ianyfan/commands (diff)
parentFix dead stores found by scan-build (diff)
downloadsway-04aa41de340b82d4eccc5c0c86fa6f9c178b72d5.tar.gz
sway-04aa41de340b82d4eccc5c0c86fa6f9c178b72d5.tar.zst
sway-04aa41de340b82d4eccc5c0c86fa6f9c178b72d5.zip
Merge pull request #3496 from mstoeckl/fix-san
Fix dead stores found by scan-build
Diffstat (limited to 'swaybar')
-rw-r--r--swaybar/tray/item.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybar/tray/item.c b/swaybar/tray/item.c
index 39d83b23..a43bbf6f 100644
--- a/swaybar/tray/item.c
+++ b/swaybar/tray/item.c
@@ -334,7 +334,7 @@ static void handle_click(struct swaybar_sni *sni, int x, int y,
334 334
335 if (strncmp(method, "Scroll", strlen("Scroll")) == 0) { 335 if (strncmp(method, "Scroll", strlen("Scroll")) == 0) {
336 char dir = method[strlen("Scroll")]; 336 char dir = method[strlen("Scroll")];
337 char *orientation = (dir = 'U' || dir == 'D') ? "vertical" : "horizontal"; 337 char *orientation = (dir == 'U' || dir == 'D') ? "vertical" : "horizontal";
338 int sign = (dir == 'U' || dir == 'L') ? -1 : 1; 338 int sign = (dir == 'U' || dir == 'L') ? -1 : 1;
339 339
340 sd_bus_call_method_async(sni->tray->bus, NULL, sni->service, sni->path, 340 sd_bus_call_method_async(sni->tray->bus, NULL, sni->service, sni->path,