Fix application list not refreshing on each call
| Author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-04-15 22:16:55 +0200 |
| Committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-04-15 22:16:55 +0200 |
| Commit | 6ac76fddad885eb23ff019ae36a86c8bb487670b (patch) |
|
-rw-r--r-- |
config.def.h | 2 | |
-rw-r--r-- |
launcher.c | 7 |
2 files changed, 2 insertions, 7 deletions
| diff --git a/config.def.h b/config.def.h | |||
| ... | |||
| 30 | static const char *mic_active_fg_color = "white"; |
30 | static const char *mic_active_fg_color = "white"; |
| 31 | static const char *mic_muted_fg_color = "white"; |
31 | static const char *mic_muted_fg_color = "white"; |
| 32 | static const char *layout_tile_bg_color = "darkgreen"; |
32 | static const char *layout_tile_bg_color = "darkgreen"; |
| 33 | static const char *layout_float_bg_color = "#333333"; |
33 | static const char *layout_float_bg_color = "#222222"; |
| 34 | static const char *layout_tile_fg_color = "white"; |
34 | static const char *layout_tile_fg_color = "white"; |
| 35 | static const char *layout_float_fg_color = "white"; |
35 | static const char *layout_float_fg_color = "white"; |
| 36 | 36 | ||
| ... | |||
| diff --git a/launcher.c b/launcher.c | |||
| ... | |||
| 124 | return; |
124 | return; |
| 125 | } |
125 | } |
| 126 | 126 | ||
| 127 | if (wm.launcher_items) { |
127 | load_applications(); |
| 128 | load_usage(); |
||
| 129 | qsort(wm.launcher_items, wm.launcher_items_count, sizeof(LauncherItem), compare_launcher_items); |
||
| 130 | } else { |
||
| 131 | load_applications(); |
||
| 132 | } |
||
| 133 | 128 | ||
| 134 | wm.launcher_active = 1; |
129 | wm.launcher_active = 1; |
| 135 | wm.launcher_search[0] = '\0'; |
130 | wm.launcher_search[0] = '\0'; |
| ... | |||