nyxwm

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit c538c0234447ae554d095f6dd5e08a88400130b0
parent 0ffbf8e53d752cd66a5474500d52baada0f0141c
Author: nyangkosense <sebastian.michalk@protonmail.com>
Date:   Mon, 14 Oct 2024 20:38:37 +0000

clean up code

Diffstat:
Mnyxwm.c | 16+++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)

diff --git 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;