Improve code in "src/dwm.c"
This commit is contained in:
parent
255d02b12e
commit
0981683f1e
1 changed files with 10 additions and 9 deletions
19
src/dwm.c
19
src/dwm.c
|
@ -237,7 +237,16 @@ static Unit global_unit = NULL;
|
||||||
static const char broken[] = "broken";
|
static const char broken[] = "broken";
|
||||||
static int (*xerrorxlib)(Display *, XErrorEvent *);
|
static int (*xerrorxlib)(Display *, XErrorEvent *);
|
||||||
static unsigned int numlockmask = 0;
|
static unsigned int numlockmask = 0;
|
||||||
static void (*handler[LASTEvent]) (XEvent *) = {
|
static Atoms atoms = NULL;
|
||||||
|
static int running = 1;
|
||||||
|
static Cur *cursor[CurLast];
|
||||||
|
static Clr **scheme;
|
||||||
|
static Display *dpy;
|
||||||
|
static Drw *drw;
|
||||||
|
static Monitor *mons, *selmon;
|
||||||
|
static Window root, wmcheckwin;
|
||||||
|
|
||||||
|
static void (*handler[LASTEvent])(XEvent*) = {
|
||||||
[ButtonPress] = on_button_press,
|
[ButtonPress] = on_button_press,
|
||||||
[ClientMessage] = on_client_message,
|
[ClientMessage] = on_client_message,
|
||||||
[ConfigureRequest] = on_configure_request,
|
[ConfigureRequest] = on_configure_request,
|
||||||
|
@ -250,14 +259,6 @@ static void (*handler[LASTEvent]) (XEvent *) = {
|
||||||
[PropertyNotify] = on_property_notify,
|
[PropertyNotify] = on_property_notify,
|
||||||
[UnmapNotify] = on_unmap_notify
|
[UnmapNotify] = on_unmap_notify
|
||||||
};
|
};
|
||||||
static Atoms atoms = NULL;
|
|
||||||
static int running = 1;
|
|
||||||
static Cur *cursor[CurLast];
|
|
||||||
static Clr **scheme;
|
|
||||||
static Display *dpy;
|
|
||||||
static Drw *drw;
|
|
||||||
static Monitor *mons, *selmon;
|
|
||||||
static Window root, wmcheckwin;
|
|
||||||
|
|
||||||
/***************************************************************
|
/***************************************************************
|
||||||
* configuration, allows nested code to access above variables *
|
* configuration, allows nested code to access above variables *
|
||||||
|
|
Loading…
Reference in a new issue