mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +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
@@ -62,5 +62,23 @@ void wApplicationExtractDirPackIcon(WScreen *scr,char *path, char *wm_instance,
|
||||
char *wm_class);
|
||||
|
||||
void wAppBounce(WApplication *);
|
||||
#endif
|
||||
|
||||
#ifdef NEWAPPICON
|
||||
#define wApplicationActivate(wapp) do { \
|
||||
if (wapp->app_icon) { \
|
||||
wIconSetHighlited(wapp->app_icon->icon, True); \
|
||||
wAppIconPaint(wapp->app_icon);\
|
||||
} \
|
||||
} while (0)
|
||||
#define wApplicationDeactivate(wapp) do { \
|
||||
if (wapp->app_icon) { \
|
||||
wIconSetHighlited(wapp->app_icon->icon, False); \
|
||||
wAppIconPaint(wapp->app_icon);\
|
||||
} \
|
||||
} while (0)
|
||||
#else
|
||||
#define wApplicationActivate(wapp) do { } while (0)
|
||||
#define wApplicationDeactivate(wapp) do { } while (0)
|
||||
#endif /* NEWAPPICON */
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user