mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
CtrlCore: X11 urgency hint (#19)
git-svn-id: svn://ultimatepp.org/upp/trunk@3216 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
8015906c1d
commit
3a2f06a74f
1 changed files with 5 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue