dwm.c
changeset 1245 2488c46e002c
parent 1244 c8bd07e7d006
child 1246 8e0e5e128a06
equal deleted inserted replaced
1244:c8bd07e7d006 1245:2488c46e002c
   265 		if(c->tags & tagset[seltags]) { /* is visible */
   265 		if(c->tags & tagset[seltags]) { /* is visible */
   266 			if(ismax && !c->isfixed) {
   266 			if(ismax && !c->isfixed) {
   267 				XMoveResizeWindow(dpy, c->win, wx, wy, ww - 2 * c->bw, wh - 2 * c->bw);
   267 				XMoveResizeWindow(dpy, c->win, wx, wy, ww - 2 * c->bw, wh - 2 * c->bw);
   268 				c->ismoved = True;
   268 				c->ismoved = True;
   269 			}
   269 			}
   270 			else if(!lt->arrange || c->isfloating)
   270 			else if(!lt->arrange || ismax || c->isfloating)
   271 				resize(c, c->x, c->y, c->w, c->h, True);
   271 				resize(c, c->x, c->y, c->w, c->h, True);
   272 			c->isbanned = False;
   272 			c->isbanned = False;
   273 		}
   273 		}
   274 		else if(!c->isbanned) {
   274 		else if(!c->isbanned) {
   275 			XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y);
   275 			XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y);
  1717 
  1717 
  1718 void
  1718 void
  1719 zoom(const void *arg) {
  1719 zoom(const void *arg) {
  1720 	Client *c = sel;
  1720 	Client *c = sel;
  1721 
  1721 
  1722 	if(!lt->arrange || sel->isfloating)
  1722 	if(ismax || !lt->arrange || (sel && sel->isfloating))
  1723 		return;
  1723 		return;
  1724 	if(c == nexttiled(clients))
  1724 	if(c == nexttiled(clients))
  1725 		if(!c || !(c = nexttiled(c->next)))
  1725 		if(!c || !(c = nexttiled(c->next)))
  1726 			return;
  1726 			return;
  1727 	detach(c);
  1727 	detach(c);