mirror of
https://github.com/dylanaraps/sowm.git
synced 2025-07-26 09:41:59 -07:00
docs: update
This commit is contained in:
2
Makefile
2
Makefile
@@ -1,4 +1,4 @@
|
||||
CFLAGS+= -Wall
|
||||
CFLAGS+= -std=c99 -Wall -Wno-deprecated-declarations -pedantic
|
||||
LDADD+= -lX11
|
||||
LDFLAGS=
|
||||
PREFIX?= /usr
|
||||
|
11
config.h
11
config.h
@@ -1,13 +1,3 @@
|
||||
/*
|
||||
* /\___/\
|
||||
* ( o o ) Made by cat...
|
||||
* ( =^= )
|
||||
* ( ) ... for cat!
|
||||
* ( )
|
||||
* ( ))))))________________
|
||||
* __________________
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_H
|
||||
#define CONFIG_H
|
||||
|
||||
@@ -55,4 +45,3 @@ static struct key keys[] = {
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
3
sowm.c
3
sowm.c
@@ -4,7 +4,6 @@
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/XF86keysym.h>
|
||||
#include <X11/XKBlib.h>
|
||||
#include <X11/keysym.h>
|
||||
#include <stdlib.h>
|
||||
#include <signal.h>
|
||||
@@ -250,7 +249,7 @@ void key_grab() {
|
||||
|
||||
void key_press(XEvent *e) {
|
||||
XKeyEvent ke = e->xkey;
|
||||
KeySym keysym = XkbKeycodeToKeysym(dis,ke.keycode,0,0);
|
||||
KeySym keysym = XKeycodeToKeysym(dis,ke.keycode,0);
|
||||
|
||||
for(int i=0; i < sizeof(keys)/sizeof(*keys); ++i) {
|
||||
if (keys[i].keysym == keysym && keys[i].mod == ke.state)
|
||||
|
Reference in New Issue
Block a user