feat(xwindow): New module "xwindow"

Add module to display title of active window.
Requires WM with support for the _NET_ACTIVE_WINDOW hint.

Ref 
This commit is contained in:
Michael Carlberg 2016-11-19 04:03:18 +01:00
parent b921225487
commit 51d8f289fa
21 changed files with 445 additions and 16 deletions
src/components

View file

@ -722,7 +722,7 @@ void bar::set_wmhints() {
wm_util::set_wmstate(m_connection, m_window, {_NET_WM_STATE_STICKY, _NET_WM_STATE_ABOVE});
m_log.trace("bar: Set _NET_WM_DESKTOP");
wm_util::set_wmdesktop(m_connection, m_window, -1u);
wm_util::set_wmdesktop(m_connection, m_window, 0xFFFFFFFF);
m_log.trace("bar: Set _NET_WM_PID");
wm_util::set_wmpid(m_connection, m_window, getpid());