mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
fix KeySym type
This commit is contained in:
parent
5f06e5a8ca
commit
457938fbd7
6
calmwm.h
6
calmwm.h
@ -236,7 +236,7 @@ struct keybinding {
|
|||||||
void (*callback)(struct client_ctx *, union arg *);
|
void (*callback)(struct client_ctx *, union arg *);
|
||||||
union arg argument;
|
union arg argument;
|
||||||
int modmask;
|
int modmask;
|
||||||
int keysym;
|
KeySym keysym;
|
||||||
int keycode;
|
int keycode;
|
||||||
#define KBFLAG_NEEDCLIENT 0x0001
|
#define KBFLAG_NEEDCLIENT 0x0001
|
||||||
int flags;
|
int flags;
|
||||||
@ -465,8 +465,8 @@ unsigned long xu_getcolor(struct screen_ctx *, char *);
|
|||||||
int xu_getprop(Window, Atom, Atom, long, u_char **);
|
int xu_getprop(Window, Atom, Atom, long, u_char **);
|
||||||
int xu_get_wm_state(Window, int *);
|
int xu_get_wm_state(Window, int *);
|
||||||
int xu_getstrprop(Window, Atom, char **);
|
int xu_getstrprop(Window, Atom, char **);
|
||||||
void xu_key_grab(Window, int, int);
|
void xu_key_grab(Window, int, KeySym);
|
||||||
void xu_key_ungrab(Window, int, int);
|
void xu_key_ungrab(Window, int, KeySym);
|
||||||
void xu_ptr_getpos(Window, int *, int *);
|
void xu_ptr_getpos(Window, int *, int *);
|
||||||
int xu_ptr_grab(Window, int, Cursor);
|
int xu_ptr_grab(Window, int, Cursor);
|
||||||
int xu_ptr_regrab(int, Cursor);
|
int xu_ptr_regrab(int, Cursor);
|
||||||
|
@ -322,7 +322,8 @@ xev_handle_keyrelease(XEvent *ee)
|
|||||||
XKeyEvent *e = &ee->xkey;
|
XKeyEvent *e = &ee->xkey;
|
||||||
struct screen_ctx *sc;
|
struct screen_ctx *sc;
|
||||||
struct client_ctx *cc;
|
struct client_ctx *cc;
|
||||||
int i, keysym;
|
KeySym keysym;
|
||||||
|
int i;
|
||||||
|
|
||||||
sc = screen_fromroot(e->root);
|
sc = screen_fromroot(e->root);
|
||||||
cc = client_current();
|
cc = client_current();
|
||||||
|
4
xutil.c
4
xutil.c
@ -88,7 +88,7 @@ xu_ptr_setpos(Window win, int x, int y)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
xu_key_grab(Window win, int mask, int keysym)
|
xu_key_grab(Window win, int mask, KeySym keysym)
|
||||||
{
|
{
|
||||||
KeyCode code;
|
KeyCode code;
|
||||||
int i;
|
int i;
|
||||||
@ -104,7 +104,7 @@ xu_key_grab(Window win, int mask, int keysym)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
xu_key_ungrab(Window win, int mask, int keysym)
|
xu_key_ungrab(Window win, int mask, KeySym keysym)
|
||||||
{
|
{
|
||||||
KeyCode code;
|
KeyCode code;
|
||||||
int i;
|
int i;
|
||||||
|
Loading…
Reference in New Issue
Block a user