CtrlCore: X11 urgency hint (#19)

git-svn-id: svn://ultimatepp.org/upp/trunk@3216 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2011-02-17 19:10:04 +00:00
parent 8015906c1d
commit 3a2f06a74f

View file

@ -145,8 +145,11 @@ void TopWindow::SyncCaption0()
// XChangeProperty(Xdisplay, GetWindow(), XAtom("_NET_WM_STATE"), XAtom("ATOM"), 32,
// PropModeReplace, (const unsigned char *)wina, n);
wm_hints->flags = InputHint|WindowGroupHint|StateHint;
if(IsForeground()) urgent = false;
if(urgent) wm_hints->flags |= XUrgencyHint;
if(urgent){
if(IsForeground()) urgent = false;
wm_hints->flags |= XUrgencyHint;
WmState(w,urgent,XAtom("_NET_WM_STATE_DEMANDS_ATTENTION"));
}
wm_hints->initial_state = NormalState;
wm_hints->input = XTrue;
Ctrl *owner = GetOwner();