diff options
author | okan <okan> | 2013-06-20 02:33:57 +0000 |
---|---|---|
committer | okan <okan> | 2013-06-20 02:33:57 +0000 |
commit | 9a12ca3520e1f8d5673755d0dbe73e9d94bdbc79 (patch) | |
tree | 1f679799de165046b7704886b55cde893eff0cc1 /calmwm.h | |
parent | c30653b1c34cff7ca527e15918595e8bea6941c3 (diff) | |
parent | 7004700ce0b216f4ea4bb84043acb311928c9a6d (diff) | |
download | cwm-9a12ca3520e1f8d5673755d0dbe73e9d94bdbc79.tar.gz cwm-9a12ca3520e1f8d5673755d0dbe73e9d94bdbc79.tar.xz cwm-9a12ca3520e1f8d5673755d0dbe73e9d94bdbc79.zip |
cvsimport
Diffstat (limited to 'calmwm.h')
-rw-r--r-- | calmwm.h | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/calmwm.h b/calmwm.h index d5119b1..3e40b88 100644 --- a/calmwm.h +++ b/calmwm.h @@ -97,6 +97,15 @@ union arg { int i; }; +enum cursor_font { + CF_DEFAULT, + CF_MOVE, + CF_NORMAL, + CF_QUESTION, + CF_RESIZE, + CF_NITEMS +}; + enum color { CWM_COLOR_BORDER_ACTIVE, CWM_COLOR_BORDER_INACTIVE, @@ -306,6 +315,7 @@ struct conf { char known_hosts[MAXPATHLEN]; #define CONF_FONT "sans-serif:pixelsize=14:bold" char *font; + Cursor cursor[CF_NITEMS]; }; /* MWM hints */ @@ -323,6 +333,7 @@ struct mwm_hints { __dead void usage(void); void client_applysizehints(struct client_ctx *); +void client_config(struct client_ctx *); struct client_ctx *client_current(void); void client_cycle(struct screen_ctx *, int); void client_cycle_leave(struct screen_ctx *, @@ -339,6 +350,7 @@ void client_leave(struct client_ctx *); void client_lower(struct client_ctx *); void client_map(struct client_ctx *); void client_maximize(struct client_ctx *); +void client_msg(struct client_ctx *, Atom); void client_move(struct client_ctx *); struct client_ctx *client_init(Window, struct screen_ctx *, int); void client_ptrsave(struct client_ctx *); @@ -447,6 +459,7 @@ void conf_bindname(struct conf *, char *, char *); void conf_clear(struct conf *); void conf_client(struct client_ctx *); void conf_cmd_add(struct conf *, char *, char *); +void conf_cursor(struct conf *); void conf_grab_kbd(Window); void conf_grab_mouse(Window); void conf_init(struct conf *); @@ -458,7 +471,6 @@ void xev_loop(void); void xu_btn_grab(Window, int, u_int); void xu_btn_ungrab(Window, int, u_int); -void xu_configure(struct client_ctx *); void xu_getatoms(void); int xu_getprop(Window, Atom, Atom, long, u_char **); int xu_get_wm_state(Window, int *); @@ -469,7 +481,6 @@ int xu_ptr_grab(Window, u_int, Cursor); int xu_ptr_regrab(u_int, Cursor); void xu_ptr_setpos(Window, int, int); void xu_ptr_ungrab(void); -void xu_sendmsg(Window, Atom, Atom); void xu_set_wm_state(Window win, int); void xu_xft_draw(struct screen_ctx *, const char *, int, int, int); @@ -510,12 +521,6 @@ int xasprintf(char **, const char *, ...) /* Externs */ extern Display *X_Dpy; -extern Cursor Cursor_default; -extern Cursor Cursor_move; -extern Cursor Cursor_normal; -extern Cursor Cursor_question; -extern Cursor Cursor_resize; - extern struct screen_ctx_q Screenq; extern struct client_ctx_q Clientq; extern struct conf Conf; |