Load icon only from disk if window changes

Signed-off-by: Felix Weilbach <felix.weilbach@t-online.de>
This commit is contained in:
Felix Weilbach 2021-05-01 12:24:56 +02:00
parent 402706ff9d
commit 7a20f8ed92
2 changed files with 41 additions and 29 deletions

View file

@ -101,6 +101,7 @@ struct swaybar_window {
char *name;
char *icon_name;
cairo_surface_t *icon;
bool icon_name_icon_sync;
};
bool bar_setup(struct swaybar *bar, const char *socket_path);