diff --git a/src/modules/xwindow.cpp b/src/modules/xwindow.cpp index 4f11a84d..a15a6c46 100644 --- a/src/modules/xwindow.cpp +++ b/src/modules/xwindow.cpp @@ -42,15 +42,15 @@ namespace modules { /** * Get the title by returning the first non-empty value of: - * _NET_WM_VISIBLE_NAME * _NET_WM_NAME + * _NET_WM_VISIBLE_NAME */ string active_window::title(xcb_ewmh_connection_t* ewmh) const { string title; - if (!(title = ewmh_util::get_visible_name(ewmh, m_window)).empty()) { + if (!(title = ewmh_util::get_wm_name(ewmh, m_window)).empty()) { return title; - } else if (!(title = ewmh_util::get_wm_name(ewmh, m_window)).empty()) { + } else if (!(title = ewmh_util::get_visible_name(ewmh, m_window)).empty()) { return title; } else if (!(title = icccm_util::get_wm_name(m_connection, m_window)).empty()) { return title;