About X11's WM_HINTS.UrgencyHint and KF5's NET::DemandsAttention

Paulo Lieuthier paulolieuthier at gmail.com
Tue Sep 2 19:40:42 BST 2014


Hello everyone,

I'm a LXQt contributor and I've been working on getting it rid of Xlib calls 
by using KF5's WindowSystem (thank you very much fot that :) ).

The problem I'm having now is that I can't get the taskbar to indicate a 
window needs attention by using the KWindowInfo class.

This is how it worked before:

	XWMHints *hints = XGetWMHints(QX11Info::display(), _wid);
	...
	bool urgencyHint = hints->flags & UrgencyHint;
	...

And that's how I've been trying:

	KWindowInfo info(wid, NET::WMState | NET::XAWMState);
	bool urgencyHint = info.hasState(NET::DemandsAttention);

Isn't NET::DemandsAttention supposed to read WM_HINTS? What am I missing?

Thanks in advance!

---

Paulo Lieuthier





More information about the kde-core-devel mailing list