From 132b832c524e8034bf6cce8d319ae0262901875f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elohim=20Falc=C3=B3n?= Date: Tue, 17 Jan 2017 07:59:32 -0600 Subject: [PATCH] fix(xwindow): Give priority to _NET_WM_NAME (#342) --- src/modules/xwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;