_NET_WM_NAME与显示的窗口标题不匹配

时间:2014-07-31 13:23:06

标签: x11 xlib

原子_NET_WM_NAME中的文字通常与XFCE的小组显示的内容不匹配。

例如,当app.d (~/GIT/Clemote/server/source) - gedit返回_NET_WM_NAME时,gedit可能会显示为gedit。其他窗户,如Chromium,不会返回任何内容。

如何获得与XFCE面板中显示的标题相匹配的标题?

我在伪代码中做了什么:

grab all windows by using XQueryTree with the root window
get the _NET_WM_NAME atom
for each window
  if visible, print the value of the atom

示例输出:

Xfce Terminal
gedit

0 个答案:

没有答案