mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
define LockMask|Mod2Mask; no functional change
This commit is contained in:
parent
b848a2b236
commit
e5d59c2d7b
1
calmwm.h
1
calmwm.h
@ -53,6 +53,7 @@
|
|||||||
#define MENUGRABMASK (BUTTONMASK|ButtonMotionMask|StructureNotifyMask|\
|
#define MENUGRABMASK (BUTTONMASK|ButtonMotionMask|StructureNotifyMask|\
|
||||||
PointerMotionMask)
|
PointerMotionMask)
|
||||||
#define SEARCHMASK (KeyPressMask|ExposureMask)
|
#define SEARCHMASK (KeyPressMask|ExposureMask)
|
||||||
|
#define IGNOREMODMASK (LockMask|Mod2Mask)
|
||||||
|
|
||||||
/* kb movement */
|
/* kb movement */
|
||||||
#define CWM_MOVE 0x0001
|
#define CWM_MOVE 0x0001
|
||||||
|
@ -241,8 +241,7 @@ xev_handle_buttonpress(XEvent *ee)
|
|||||||
sc = screen_fromroot(e->root);
|
sc = screen_fromroot(e->root);
|
||||||
cc = client_find(e->window);
|
cc = client_find(e->window);
|
||||||
|
|
||||||
/* Ignore caps lock and numlock */
|
e->state &= ~IGNOREMODMASK;
|
||||||
e->state &= ~(Mod2Mask | LockMask);
|
|
||||||
|
|
||||||
TAILQ_FOREACH(mb, &Conf.mousebindingq, entry) {
|
TAILQ_FOREACH(mb, &Conf.mousebindingq, entry) {
|
||||||
if (e->button == mb->button && e->state == mb->modmask)
|
if (e->button == mb->button && e->state == mb->modmask)
|
||||||
@ -283,8 +282,7 @@ xev_handle_keypress(XEvent *ee)
|
|||||||
keysym = XkbKeycodeToKeysym(X_Dpy, e->keycode, 0, 0);
|
keysym = XkbKeycodeToKeysym(X_Dpy, e->keycode, 0, 0);
|
||||||
skeysym = XkbKeycodeToKeysym(X_Dpy, e->keycode, 0, 1);
|
skeysym = XkbKeycodeToKeysym(X_Dpy, e->keycode, 0, 1);
|
||||||
|
|
||||||
/* we don't care about caps lock and numlock here */
|
e->state &= ~IGNOREMODMASK;
|
||||||
e->state &= ~(LockMask | Mod2Mask);
|
|
||||||
|
|
||||||
TAILQ_FOREACH(kb, &Conf.keybindingq, entry) {
|
TAILQ_FOREACH(kb, &Conf.keybindingq, entry) {
|
||||||
if (keysym != kb->keysym && skeysym == kb->keysym)
|
if (keysym != kb->keysym && skeysym == kb->keysym)
|
||||||
|
Loading…
Reference in New Issue
Block a user