mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
wrap key ungrab like btn ungrab, for it'll be used again
This commit is contained in:
parent
9ff288baef
commit
5b733a152d
1
calmwm.h
1
calmwm.h
@ -516,6 +516,7 @@ int xu_getprop(Window, Atom, Atom, long, unsigned 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, u_int, KeySym);
|
void xu_key_grab(Window, u_int, KeySym);
|
||||||
|
void xu_key_ungrab(Window);
|
||||||
void xu_ptr_getpos(Window, int *, int *);
|
void xu_ptr_getpos(Window, int *, int *);
|
||||||
int xu_ptr_grab(Window, u_int, Cursor);
|
int xu_ptr_grab(Window, u_int, Cursor);
|
||||||
int xu_ptr_regrab(u_int, Cursor);
|
int xu_ptr_regrab(u_int, Cursor);
|
||||||
|
2
conf.c
2
conf.c
@ -663,7 +663,7 @@ conf_grab_kbd(Window win)
|
|||||||
{
|
{
|
||||||
struct keybinding *kb;
|
struct keybinding *kb;
|
||||||
|
|
||||||
XUngrabKey(X_Dpy, AnyKey, AnyModifier, win);
|
xu_key_ungrab(win);
|
||||||
|
|
||||||
TAILQ_FOREACH(kb, &Conf.keybindingq, entry)
|
TAILQ_FOREACH(kb, &Conf.keybindingq, entry)
|
||||||
xu_key_grab(win, kb->modmask, kb->keysym);
|
xu_key_grab(win, kb->modmask, kb->keysym);
|
||||||
|
6
xutil.c
6
xutil.c
@ -102,6 +102,12 @@ xu_key_grab(Window win, u_int mask, KeySym keysym)
|
|||||||
True, GrabModeAsync, GrabModeAsync);
|
True, GrabModeAsync, GrabModeAsync);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
xu_key_ungrab(Window win)
|
||||||
|
{
|
||||||
|
XUngrabKey(X_Dpy, AnyKey, AnyModifier, win);
|
||||||
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
xu_getprop(Window win, Atom atm, Atom type, long len, unsigned char **p)
|
xu_getprop(Window win, Atom atm, Atom type, long len, unsigned char **p)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user