mirror of
https://github.com/dylanaraps/sowm.git
synced 2026-10-01 21:43:41 +07:00
docs: update
This commit is contained in:
@@ -127,10 +127,9 @@ void key_press(XEvent *e) {
|
||||
XKeyEvent ke = e->xkey;
|
||||
KeySym keysym = XKeycodeToKeysym(dis,ke.keycode,0);
|
||||
|
||||
for(int i=0; i < sizeof(keys)/sizeof(*keys); ++i) {
|
||||
for(int i=0; i < sizeof(keys)/sizeof(*keys); ++i)
|
||||
if (keys[i].keysym == keysym && keys[i].mod == ke.state)
|
||||
keys[i].function(keys[i].arg);
|
||||
}
|
||||
}
|
||||
|
||||
void button_press(XEvent *e) {
|
||||
|
||||
Reference in New Issue
Block a user