1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00

Only cache pixmaps for docked icons

There is little point caching a pixmap for an app that isn't in the
dock. This patch creates a function wAppIconSave that saves only if the
app icon is docked, and adds calls to that function in all the places
where an appicon can transition from undocked to docked.

It also "adds" a function wApplicationSaveIconPathFor that saves an icon
path to the configuration plist; the function already existed, it was
just static before.

Signed-off-by: Brad Jorsch <anomie@users.sourceforge.net>
This commit is contained in:
Brad Jorsch
2010-10-08 15:08:34 -04:00
committed by Carlos R. Mafra
parent 125cba8f82
commit a396f3bd66
5 changed files with 32 additions and 20 deletions

View File

@@ -58,6 +58,8 @@ WApplication *wApplicationOf(Window window);
void wApplicationExtractDirPackIcon(WScreen *scr,char *path, char *wm_instance,
char *wm_class);
void wApplicationSaveIconPathFor(char *iconPath, char *wm_instance,
char *wm_class);
void wAppBounce(WApplication *);
void wAppBounceWhileUrgent(WApplication *);