Updated mwm.c.

This commit is contained in:
Luis Lavaire 2024-01-28 01:30:59 -06:00
parent b2d8bb493f
commit 1e11c98aad

7
mwm.c
View file

@ -8,11 +8,10 @@ int main (int argc, char **argv) {
Display *d = XOpenDisplay(0); Window r = DefaultRootWindow(d); XEvent e; Display *d = XOpenDisplay(0); Window r = DefaultRootWindow(d); XEvent e;
XSelectInput (d, r, SubstructureRedirectMask); XSelectInput (d, r, SubstructureRedirectMask);
grab ("KEY", MODIFIER); // grab keys here.
while (!XNextEvent (d, &e)) { while (!XNextEvent (d, &e)) {
if (e.type == KeyPress) { if (e.type == KeyPress) ;
on ("KEY", ACTIONS); // define actions here.
}
} }
} }