From a7e9dcb0db82dfd7690c9218f8814321378568c6 Mon Sep 17 00:00:00 2001 From: Mihir Lad Date: Mon, 20 Jul 2020 00:17:29 -0400 Subject: [PATCH] dwm: Fix title initialization Title was being set on module startup to the active monitor's selected window title instead of the bar monitor's. --- src/modules/dwm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/dwm.cpp b/src/modules/dwm.cpp index fb7b27ad..ed2fc6d7 100644 --- a/src/modules/dwm.cpp +++ b/src/modules/dwm.cpp @@ -81,7 +81,7 @@ namespace modules { // These events are only necessary to update the focused window title if (m_title_label) { - update_title_label(m_active_mon->clients.selected); + update_title_label(m_bar_mon->clients.selected); m_ipc->on_client_focus_change = [this](const dwmipc::ClientFocusChangeEvent& ev) { this->on_client_focus_change(ev); };