diff options
| author | verdant <im@verdant.ee> | 2026-07-22 22:47:56 +0800 |
|---|---|---|
| committer | verdant <im@verdant.ee> | 2026-07-22 22:47:56 +0800 |
| commit | 5656ed2c2f67d95e4373685ffe396be3d217f965 (patch) | |
| tree | 0a7b91308ed05951842fd2a3c23378e81b3bfa20 /display.h | |
| parent | 854998edb8d076ade0ffe8adf710fca1e8239a2b (diff) | |
| download | sf-5656ed2c2f67d95e4373685ffe396be3d217f965.tar.gz sf-5656ed2c2f67d95e4373685ffe396be3d217f965.zip | |
Reformat wm.c wm.h
Diffstat (limited to 'display.h')
| -rw-r--r-- | display.h | 26 |
1 files changed, 14 insertions, 12 deletions
@@ -10,8 +10,9 @@ #define COLOR_PAIR_STATUS_BAR 1 #define COLOR_PAIR_PROGRESS 2 #define COLOR_PAIR_TEXT_INFO 3 -#define COLOR_PAIR_FM_DIR 4 -#define COLOR_PAIR_BORDER 5 +#define COLOR_PAIR_FM_HL 4 +#define COLOR_PAIR_FM_DIR 5 +#define COLOR_PAIR_BORDER 6 #define STAT_INFO_WIDTH 15 #define BAR_LABEL_WIDTH 7 @@ -22,16 +23,17 @@ void color_pair_init(); terminal *ncurses_init(); -static inline WINDOW *get_root_win(const terminal *t) { - if (!t) { - log_write(LOG_ERR, "get_root_win: terminal is NULL"); - return NULL; - } - if (t->w_count <= 0 || !t->windows[0]) { - log_write(LOG_ERR, "get_root_win: windows[0] is not allocated"); - return NULL; - } - return t->windows[0]->win; +static inline WINDOW *get_root_win(const terminal *t) +{ + if (!t) { + log_write(LOG_ERR, "get_root_win: terminal is NULL"); + return NULL; + } + if (t->w_count <= 0 || !t->windows[0]) { + log_write(LOG_ERR, "get_root_win: windows[0] is not allocated"); + return NULL; + } + return t->windows[0]->win; } #define ROOT_WIN get_root_win(t) |
