54 lines
1.1 KiB
Plaintext
54 lines
1.1 KiB
Plaintext
--- dwm.c
|
|
+++ dwm.c
|
|
@@ -125,8 +139,10 @@ typedef struct {
|
|
void (*arrange)(Monitor *);
|
|
} Layout;
|
|
|
|
+
|
|
struct Monitor {
|
|
char ltsymbol[16];
|
|
float mfact;
|
|
int nmaster;
|
|
int num;
|
|
@@ -136,14 +152,17 @@ struct Monitor {
|
|
unsigned int seltags;
|
|
unsigned int sellt;
|
|
unsigned int tagset[2];
|
|
int showbar;
|
|
int topbar;
|
|
Client *clients;
|
|
Client *sel;
|
|
Client *stack;
|
|
Monitor *next;
|
|
Window barwin;
|
|
const Layout *lt[2];
|
|
};
|
|
|
|
typedef struct {
|
|
@@ -278,17 +300,27 @@ static void (*handler[LASTEvent]) (XEvent *) = {
|
|
[UnmapNotify] = unmapnotify
|
|
};
|
|
static Atom wmatom[WMLast], netatom[NetLast];
|
|
static int running = 1;
|
|
static Cur *cursor[CurLast];
|
|
static Clr **scheme;
|
|
static Display *dpy;
|
|
static Drw *drw;
|
|
static Window root, wmcheckwin;
|
|
|
|
/* configuration, allows nested code to access above variables */
|
|
#include "config.h"
|
|
|
|
/* compile-time check if all tags fit into an unsigned int bit array. */
|
|
struct NumTags { char limitexceeded[LENGTH(tags) > 31 ? -1 : 1]; };
|
|
|
|
@@ -1677,8 +1774,37 @@ setup(void)
|
|
XSelectInput(dpy, root, wa.event_mask);
|
|
grabkeys();
|
|
focus(NULL);
|
|
}
|
|
|
|
|
|
void
|
|
seturgent(Client *c, int urg)
|