dwm: Close commands in reverse order of opening

Just for consistency and style. Doesn't actually affect behavior at the moment.
This commit is contained in:
Mihir Lad 2020-07-29 21:42:55 -04:00
parent 7e78844a8f
commit 6584710b1e

View File

@ -205,11 +205,11 @@ namespace modules {
builder->cmd(mousebtn::SCROLL_UP, build_cmd(CMD_LAYOUT_SET, scroll_up_addr)); builder->cmd(mousebtn::SCROLL_UP, build_cmd(CMD_LAYOUT_SET, scroll_up_addr));
} }
builder->node(m_layout_label); builder->node(m_layout_label);
if (m_layout_click) { if (m_layout_scroll) {
builder->cmd_close(); builder->cmd_close();
builder->cmd_close(); builder->cmd_close();
} }
if (m_layout_scroll) { if (m_layout_click) {
builder->cmd_close(); builder->cmd_close();
builder->cmd_close(); builder->cmd_close();
} }