mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 21:08:08 +01:00
Made highlighting the AppIcon of the active app configurable at run time
This commit is contained in:
committed by
Carlos R. Mafra
parent
df601267e6
commit
c7e3666e62
@@ -136,7 +136,8 @@ void wSetFocusTo(WScreen *scr, WWindow *wwin)
|
||||
|
||||
if (oapp) {
|
||||
wAppMenuUnmap(oapp->menu);
|
||||
wApplicationDeactivate(oapp);
|
||||
if (wPreferences.highlight_active_app)
|
||||
wApplicationDeactivate(oapp);
|
||||
}
|
||||
|
||||
WMPostNotificationName(WMNChangedFocus, NULL, (void *)True);
|
||||
@@ -199,7 +200,8 @@ void wSetFocusTo(WScreen *scr, WWindow *wwin)
|
||||
|
||||
if (oapp && oapp != napp) {
|
||||
wAppMenuUnmap(oapp->menu);
|
||||
wApplicationDeactivate(oapp);
|
||||
if (wPreferences.highlight_active_app)
|
||||
wApplicationDeactivate(oapp);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -213,7 +215,7 @@ void wSetFocusTo(WScreen *scr, WWindow *wwin)
|
||||
if (wwin->flags.mapped)
|
||||
wAppMenuMap(napp->menu, wwin);
|
||||
}
|
||||
if (napp)
|
||||
if (napp && wPreferences.highlight_active_app)
|
||||
wApplicationActivate(napp);
|
||||
|
||||
XFlush(dpy);
|
||||
|
||||
Reference in New Issue
Block a user