Updated mwm.c.
This commit is contained in:
parent
b2d8bb493f
commit
1e11c98aad
1 changed files with 3 additions and 4 deletions
7
mwm.c
7
mwm.c
|
|
@ -8,11 +8,10 @@ int main (int argc, char **argv) {
|
|||
Display *d = XOpenDisplay(0); Window r = DefaultRootWindow(d); XEvent e;
|
||||
XSelectInput (d, r, SubstructureRedirectMask);
|
||||
|
||||
grab ("KEY", MODIFIER);
|
||||
// grab keys here.
|
||||
|
||||
while (!XNextEvent (d, &e)) {
|
||||
if (e.type == KeyPress) {
|
||||
on ("KEY", ACTIONS);
|
||||
}
|
||||
if (e.type == KeyPress) ;
|
||||
// define actions here.
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue