mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-16 14:15:46 +01:00
Highlite current window's appicon
This patch highlites appicon of a currently focused window. Original-patch-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Alexey I. Froloff <raorn@altlinux.org>
This commit is contained in:
committed by
Carlos R. Mafra
parent
a257e16593
commit
392ab2607d
@@ -132,8 +132,10 @@ void wSetFocusTo(WScreen *scr, WWindow *wwin)
|
||||
XSetInputFocus(dpy, scr->no_focus_win, RevertToParent, CurrentTime);
|
||||
if (old_focused)
|
||||
wWindowUnfocus(old_focused);
|
||||
if (oapp)
|
||||
if (oapp) {
|
||||
wAppMenuUnmap(oapp->menu);
|
||||
wApplicationDeactivate(oapp);
|
||||
}
|
||||
|
||||
WMPostNotificationName(WMNChangedFocus, NULL, (void *)True);
|
||||
return;
|
||||
@@ -194,8 +196,10 @@ void wSetFocusTo(WScreen *scr, WWindow *wwin)
|
||||
wwin->next = NULL;
|
||||
scr->focused_window = wwin;
|
||||
|
||||
if (oapp && oapp != napp)
|
||||
if (oapp && oapp != napp) {
|
||||
wAppMenuUnmap(oapp->menu);
|
||||
wApplicationDeactivate(oapp);
|
||||
}
|
||||
}
|
||||
|
||||
wWindowFocus(wwin, focused);
|
||||
@@ -207,6 +211,7 @@ void wSetFocusTo(WScreen *scr, WWindow *wwin)
|
||||
|
||||
if (wwin->flags.mapped)
|
||||
wAppMenuMap(napp->menu, wwin);
|
||||
wApplicationActivate(napp);
|
||||
}
|
||||
|
||||
XFlush(dpy);
|
||||
|
||||
Reference in New Issue
Block a user