aboutsummaryrefslogtreecommitdiffstats
path: root/wm.h
diff options
context:
space:
mode:
authorverdant <im@verdant.ee>2026-07-28 14:52:30 +0800
committerverdant <im@verdant.ee>2026-07-28 14:52:30 +0800
commit7e6d61fa74cf5ad2ba922d7970a0f1325ecc2253 (patch)
tree2f3541b689a44cd2f3fb2c9c69153cdc040a48f3 /wm.h
parentc791137a0c5412d62aa9b3c60b08b3f17bbef954 (diff)
downloadsf-7e6d61fa74cf5ad2ba922d7970a0f1325ecc2253.tar.gz
sf-7e6d61fa74cf5ad2ba922d7970a0f1325ecc2253.zip
Fix function argument order and reformat
Diffstat (limited to 'wm.h')
-rw-r--r--wm.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/wm.h b/wm.h
index ebef53a..713f2cb 100644
--- a/wm.h
+++ b/wm.h
@@ -6,24 +6,24 @@
#define WINDOWS_MAX 15
typedef struct {
- WINDOW *win;
- char name[32];
- int height;
- int width;
- int start_x;
- int start_y;
+ WINDOW *win;
+ char name[32];
+ int height;
+ int width;
+ int start_x;
+ int start_y;
} window;
typedef struct {
- window **windows; /* windows[0] is root_win */
- int w_count; /* index of windows */
- int maxy;
- int maxx;
+ window **windows; /* windows[0] is root_win */
+ int w_count; /* index of windows */
+ int maxy;
+ int maxx;
} terminal;
terminal *wm_init(void);
-window *wm_create_new_w(terminal *t, const char *name, int width, int height,
- int start_y, int start_x);
+window *wm_create_new_w(terminal *t, const char *name, int height, int width,
+ int start_y, int start_x);
int wm_fd_w_by_name(terminal *t, const char *name);
void wm_refresh_all(terminal *t);