can move window and stuff
This commit is contained in:
parent
9cb052fd7a
commit
c271de7e52
3 changed files with 144 additions and 29 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue