From 6584710b1eb772d978e603d12791a0374c863c1d Mon Sep 17 00:00:00 2001 From: Mihir Lad Date: Wed, 29 Jul 2020 21:42:55 -0400 Subject: [PATCH] dwm: Close commands in reverse order of opening Just for consistency and style. Doesn't actually affect behavior at the moment. --- src/modules/dwm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/dwm.cpp b/src/modules/dwm.cpp index 9a1ba4b9..f9b2dd4b 100644 --- a/src/modules/dwm.cpp +++ b/src/modules/dwm.cpp @@ -205,11 +205,11 @@ namespace modules { builder->cmd(mousebtn::SCROLL_UP, build_cmd(CMD_LAYOUT_SET, scroll_up_addr)); } builder->node(m_layout_label); - if (m_layout_click) { + if (m_layout_scroll) { builder->cmd_close(); builder->cmd_close(); } - if (m_layout_scroll) { + if (m_layout_click) { builder->cmd_close(); builder->cmd_close(); }