keystrokes
This commit is contained in:
parent
7643b2635c
commit
df03d60c04
3 changed files with 5 additions and 3 deletions
|
|
@ -46,6 +46,7 @@ keypress(XKeyEvent *e)
|
||||||
/*
|
/*
|
||||||
* process key press here
|
* process key press here
|
||||||
*/
|
*/
|
||||||
|
if(0)
|
||||||
if(e->keycode == tabcode)
|
if(e->keycode == tabcode)
|
||||||
alttab(e->state&ShiftMask);
|
alttab(e->state&ShiftMask);
|
||||||
XAllowEvents(dpy, SyncKeyboard, e->time);
|
XAllowEvents(dpy, SyncKeyboard, e->time);
|
||||||
|
|
|
||||||
|
|
@ -335,7 +335,8 @@ initscreen(ScreenInfo *s, int i, int background)
|
||||||
attr.cursor = s->arrow;
|
attr.cursor = s->arrow;
|
||||||
attr.event_mask = SubstructureRedirectMask
|
attr.event_mask = SubstructureRedirectMask
|
||||||
| SubstructureNotifyMask | ColormapChangeMask
|
| SubstructureNotifyMask | ColormapChangeMask
|
||||||
| ButtonPressMask | ButtonReleaseMask | PropertyChangeMask;
|
| ButtonPressMask | ButtonReleaseMask | PropertyChangeMask |
|
||||||
|
KeyPressMask;
|
||||||
mask = CWCursor|CWEventMask;
|
mask = CWCursor|CWEventMask;
|
||||||
XChangeWindowAttributes(dpy, s->root, mask, &attr);
|
XChangeWindowAttributes(dpy, s->root, mask, &attr);
|
||||||
XSync(dpy, False);
|
XSync(dpy, False);
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ manage(Client *c, int mapped)
|
||||||
XSetWindowAttributes attrs;
|
XSetWindowAttributes attrs;
|
||||||
|
|
||||||
trace("manage", c, 0);
|
trace("manage", c, 0);
|
||||||
XSelectInput(dpy, c->window, ColormapChangeMask | EnterWindowMask | PropertyChangeMask | FocusChangeMask);
|
XSelectInput(dpy, c->window, ColormapChangeMask | EnterWindowMask | PropertyChangeMask | FocusChangeMask | KeyPressMask);
|
||||||
|
|
||||||
/* Get loads of hints */
|
/* Get loads of hints */
|
||||||
|
|
||||||
|
|
@ -138,7 +138,7 @@ manage(Client *c, int mapped)
|
||||||
CWBackPixel | CWBorderPixel | CWColormap,
|
CWBackPixel | CWBorderPixel | CWColormap,
|
||||||
&attrs);
|
&attrs);
|
||||||
|
|
||||||
XSelectInput(dpy, c->parent, SubstructureRedirectMask | SubstructureNotifyMask|ButtonPressMask| PointerMotionMask|LeaveWindowMask);
|
XSelectInput(dpy, c->parent, SubstructureRedirectMask | SubstructureNotifyMask|ButtonPressMask| PointerMotionMask|LeaveWindowMask|KeyPressMask);
|
||||||
if(mapped)
|
if(mapped)
|
||||||
c->reparenting = 1;
|
c->reparenting = 1;
|
||||||
if(doreshape && !fixsize)
|
if(doreshape && !fixsize)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue