diff options
author | muennich <be.muennich@googlemail.com> | 2013-01-07 14:30:42 +0100 |
---|---|---|
committer | Bert Münnich <be.muennich@gmail.com> | 2013-01-12 23:40:16 +0100 |
commit | d6a475e4b1c0d5025806c4a6e47c68e46a3c31d9 (patch) | |
tree | 1051ef5506e5ee3bd71f4c5bc9ad22a82ca94abc /window.h | |
parent | 385ba28fd78a5e1454d46a09a05b8d10ef8e0c6f (diff) | |
download | nsxiv-d6a475e4b1c0d5025806c4a6e47c68e46a3c31d9.tar.zst |
Simplified status bar, filled by user script
Diffstat (limited to 'window.h')
-rw-r--r-- | window.h | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -23,8 +23,6 @@ #include "types.h" -#define BAR_SEPARATOR " | " - typedef struct { Display *dpy; int scr; @@ -42,21 +40,23 @@ typedef struct { unsigned long bgcol; unsigned long fscol; unsigned long selcol; - unsigned long barbgcol; - unsigned long barfgcol; Pixmap pm; int x; int y; unsigned int w; unsigned int h; /* = win height - bar height */ - unsigned int barh; unsigned int bw; bool fullscreen; - const char *lbar; - const char *rbar; + struct { + unsigned int h; + char *l; + char *r; + unsigned long bgcol; + unsigned long fgcol; + } bar; } win_t; extern Atom wm_delete_win; @@ -80,7 +80,7 @@ void win_draw_rect(win_t*, Pixmap, int, int, int, int, bool, int, int win_textwidth(const char*, unsigned int, bool); void win_set_title(win_t*, const char*); -void win_set_bar_info(win_t*, const char*, const char*); +void win_set_bar_info(win_t*, char*, char*); void win_set_cursor(win_t*, cursor_t); #endif /* WINDOW_H */ |