nyxwm
Owner: IIIlllIIIllI URL: git@github.com:nyangkosense/nyxwm.git
clean up code
Commit c538c0234447ae554d095f6dd5e08a88400130b0 by nyangkosense <sebastian.michalk@protonmail.com> on 2024-10-14 20:38:37 +0000
diff --git a/nyxwm.c b/nyxwm.c
index 080e389..f8cd166 100644
--- a/nyxwm.c
+++ b/nyxwm.c
@@ -31,13 +31,6 @@
fprintf(stderr, "[%s] ERROR: " msg ": %s\n", timestr, ##__VA_ARGS__, strerror(errno)); \
} while(0)
-static client *list = {0}, *ws_list[10] = {0}, *cur;
-static int ws = 1, sw, sh, wx, wy, numlock = 0;
-static unsigned int ww, wh;
-static int s;
-static XButtonEvent mouse;
-int num_systray_icons;
-
Display *d;
Window root;
Window bar;
@@ -51,6 +44,13 @@ Atom manager_atom;
Atom system_tray_opcode_atom;
Atom system_tray_selection_atom;
+static client *list = {0}, *ws_list[10] = {0}, *cur;
+static int ws = 1, sw, sh, wx, wy, numlock = 0;
+static unsigned int ww, wh;
+static int s;
+static XButtonEvent mouse;
+int num_systray_icons;
+
static void (*events[LASTEvent])(XEvent *e) = {
[ButtonPress] = button_press,
[ButtonRelease] = button_release,
@@ -63,8 +63,6 @@ static void (*events[LASTEvent])(XEvent *e) = {
[MotionNotify] = notify_motion
};
-#include "config.h"
-
unsigned long getcolor(const char *col) {
Colormap m = DefaultColormap(d, s);
XColor c;