dwm.c
changeset 1452 769fb14ae867
parent 1451 b563268bd78a
child 1453 0082921983cb
equal deleted inserted replaced
1451:b563268bd78a 1452:769fb14ae867
    64 
    64 
    65 typedef union {
    65 typedef union {
    66 	int i;
    66 	int i;
    67 	unsigned int ui;
    67 	unsigned int ui;
    68 	float f;
    68 	float f;
    69 	void *v;
    69 	const void *v;
    70 } Arg;
    70 } Arg;
    71 
    71 
    72 typedef struct {
    72 typedef struct {
    73 	unsigned int click;
    73 	unsigned int click;
    74 	unsigned int mask;
    74 	unsigned int mask;
   134 	Client *clients;
   134 	Client *clients;
   135 	Client *sel;
   135 	Client *sel;
   136 	Client *stack;
   136 	Client *stack;
   137 	Monitor *next;
   137 	Monitor *next;
   138 	Window barwin;
   138 	Window barwin;
   139 	Layout *lt[2];
   139 	const Layout *lt[2];
   140 };
   140 };
   141 
   141 
   142 typedef struct {
   142 typedef struct {
   143 	const char *class;
   143 	const char *class;
   144 	const char *instance;
   144 	const char *instance;
   273 
   273 
   274 /* function implementations */
   274 /* function implementations */
   275 void
   275 void
   276 applyrules(Client *c) {
   276 applyrules(Client *c) {
   277 	unsigned int i;
   277 	unsigned int i;
   278 	Rule *r;
   278 	const Rule *r;
   279 	XClassHint ch = { 0 };
   279 	XClassHint ch = { 0 };
   280 
   280 
   281 	/* rule matching */
   281 	/* rule matching */
   282 	c->isfloating = c->tags = 0;
   282 	c->isfloating = c->tags = 0;
   283 	if(XGetClassHint(dpy, c->win, &ch)) {
   283 	if(XGetClassHint(dpy, c->win, &ch)) {
  1724 		m->sel = m->stack = m->clients = NULL;
  1724 		m->sel = m->stack = m->clients = NULL;
  1725 		m->seltags = 0;
  1725 		m->seltags = 0;
  1726 		m->sellt = 0;
  1726 		m->sellt = 0;
  1727 		m->tagset[0] = m->tagset[1] = 1;
  1727 		m->tagset[0] = m->tagset[1] = 1;
  1728 		m->mfact = mfact;
  1728 		m->mfact = mfact;
  1729 		m->showbar = SHOWBAR;
  1729 		m->showbar = showbar;
  1730 		m->topbar = TOPBAR;
  1730 		m->topbar = topbar;
  1731 		m->lt[0] = &layouts[0];
  1731 		m->lt[0] = &layouts[0];
  1732 		m->lt[1] = &layouts[1 % LENGTH(layouts)];
  1732 		m->lt[1] = &layouts[1 % LENGTH(layouts)];
  1733 		updatebarpos(m);
  1733 		updatebarpos(m);
  1734 	}
  1734 	}
  1735 	/* reassign left over clients of disappeared monitors */
  1735 	/* reassign left over clients of disappeared monitors */