fix(xwindow): Give priority to _NET_WM_NAME (#342)
This commit is contained in:
parent
826e125c80
commit
132b832c52
1 changed files with 3 additions and 3 deletions
|
@ -42,15 +42,15 @@ namespace modules {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the title by returning the first non-empty value of:
|
* Get the title by returning the first non-empty value of:
|
||||||
* _NET_WM_VISIBLE_NAME
|
|
||||||
* _NET_WM_NAME
|
* _NET_WM_NAME
|
||||||
|
* _NET_WM_VISIBLE_NAME
|
||||||
*/
|
*/
|
||||||
string active_window::title(xcb_ewmh_connection_t* ewmh) const {
|
string active_window::title(xcb_ewmh_connection_t* ewmh) const {
|
||||||
string title;
|
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;
|
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;
|
return title;
|
||||||
} else if (!(title = icccm_util::get_wm_name(m_connection, m_window)).empty()) {
|
} else if (!(title = icccm_util::get_wm_name(m_connection, m_window)).empty()) {
|
||||||
return title;
|
return title;
|
||||||
|
|
Loading…
Reference in a new issue