can move window and stuff

This commit is contained in:
Nishi 2025-12-08 01:06:48 +09:00
commit c271de7e52
Signed by: nishi
GPG key ID: 27EF69B208EB9343
3 changed files with 144 additions and 29 deletions

View file

@ -20,6 +20,7 @@
#include <pthread.h>
#define TitleBarHeight 16
#define Gap 1
/* xserver.c */
extern pthread_t xthread;
@ -28,6 +29,7 @@ extern Display* xdisplay;
int init_x(void);
void loop_x(void);
void set_focus_x(MwWidget widget);
/* wm.c */
void loop_wm(void);
@ -35,6 +37,13 @@ MwWidget wm_frame(int w, int h);
void wm_destroy(MwWidget widget);
void wm_set_name(MwWidget widget, const char* name);
void wm_focus(MwWidget widget, int focus);
MwWidget wm_get_inside(MwWidget widget); /* make client area child of this widget, at (wm_content_x(),wm_content_y) */
int wm_entire_width(int content);
int wm_entire_height(int content);
int wm_content_width(int entire);
int wm_content_height(int entire);
int wm_content_x(void);
int wm_content_y(void);
/* config.c */
extern config_t wm_config;