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.
This commit is contained in:
Mihir Lad 2020-07-20 00:17:29 -04:00
parent 399a797b45
commit a7e9dcb0db

View File

@ -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);
};