dwm.c
branchstil
changeset 1542 a699915c007f
parent 1541 16039d3a6270
equal deleted inserted replaced
1541:16039d3a6270 1542:a699915c007f
   248 static int xerrorstart(Display *dpy, XErrorEvent *ee);
   248 static int xerrorstart(Display *dpy, XErrorEvent *ee);
   249 static void zoom(const Arg *arg);
   249 static void zoom(const Arg *arg);
   250 
   250 
   251 /* variables */
   251 /* variables */
   252 static const char broken[] = "broken";
   252 static const char broken[] = "broken";
   253 static char stext[256];
   253 static char stext[512];
   254 static int screen;
   254 static int screen;
   255 static int sw, sh;           /* X display screen geometry width, height */
   255 static int sw, sh;           /* X display screen geometry width, height */
   256 static int bh, blw = 0;      /* bar geometry */
   256 static int bh, blw = 0;      /* bar geometry */
   257 static int (*xerrorxlib)(Display *, XErrorEvent *);
   257 static int (*xerrorxlib)(Display *, XErrorEvent *);
   258 static unsigned int numlockmask = 0;
   258 static unsigned int numlockmask = 0;
   561 	if(cme->message_type == netatom[NetWMState]) {
   561 	if(cme->message_type == netatom[NetWMState]) {
   562 		if(cme->data.l[1] == netatom[NetWMFullscreen] || cme->data.l[2] == netatom[NetWMFullscreen])
   562 		if(cme->data.l[1] == netatom[NetWMFullscreen] || cme->data.l[2] == netatom[NetWMFullscreen])
   563 			setfullscreen(c, (cme->data.l[0] == 1 /* _NET_WM_STATE_ADD    */
   563 			setfullscreen(c, (cme->data.l[0] == 1 /* _NET_WM_STATE_ADD    */
   564 			              || (cme->data.l[0] == 2 /* _NET_WM_STATE_TOGGLE */ && !c->isfullscreen)));
   564 			              || (cme->data.l[0] == 2 /* _NET_WM_STATE_TOGGLE */ && !c->isfullscreen)));
   565 	}
   565 	}
       
   566 #ifdef SWITCH_TAG_ON_NETACTIVEWINDOW
   566 	else if(cme->message_type == netatom[NetActiveWindow]) {
   567 	else if(cme->message_type == netatom[NetActiveWindow]) {
   567 		if(!ISVISIBLE(c)) {
   568 		if(!ISVISIBLE(c)) {
   568 			c->mon->seltags ^= 1;
   569 			c->mon->seltags ^= 1;
   569 			c->mon->tagset[c->mon->seltags] = c->tags;
   570 			c->mon->tagset[c->mon->seltags] = c->tags;
   570 		}
   571 		}
   571 		pop(c);
   572 		pop(c);
   572 	}
   573 	}
       
   574 #endif
   573 }
   575 }
   574 
   576 
   575 void
   577 void
   576 configure(Client *c) {
   578 configure(Client *c) {
   577 	XConfigureEvent ce;
   579 	XConfigureEvent ce;