mirror of
https://github.com/swaywm/sway.git
synced 2026-02-06 04:06:25 -05:00
Add caching for icon lookups in menu items. Two new fields are added to the menu item struct: - icon_surface: cached icon surface loaded from icon_name - icon_lookup_done: tracks whether icon lookup has been attempted The icon is now looked up once and cached, rather than performing filesystem access every time the menu is drawn. The cached surface is properly cleaned up when the menu is destroyed. |
||
|---|---|---|
| .. | ||
| tray | ||
| bar.c | ||
| config.c | ||
| i3bar.c | ||
| image.c | ||
| input.c | ||
| ipc.c | ||
| main.c | ||
| meson.build | ||
| render.c | ||
| status_line.c | ||
| swaybar-protocol.7.scd | ||