dwm.c
changeset 1091 908feb1da3c4
parent 1090 09f1bf0e12ee
child 1092 2c20bc278e5e
equal deleted inserted replaced
1090:09f1bf0e12ee 1091:908feb1da3c4
  2007 	arrange();
  2007 	arrange();
  2008 }
  2008 }
  2009 
  2009 
  2010 void
  2010 void
  2011 zoom(const char *arg) {
  2011 zoom(const char *arg) {
  2012 	Client *c;
  2012 	Client *c = sel;
  2013 
  2013 
  2014 	if(!sel || !dozoom || sel->isfloating)
  2014 	if(!sel || !dozoom || sel->isfloating)
  2015 		return;
  2015 		return;
  2016 	if((c = sel) == nexttiled(clients, c->monitor))
  2016 	if(c == nexttiled(clients, c->monitor))
  2017 		if(!(c = nexttiled(c->next, c->monitor)))
  2017 		if(!(c = nexttiled(c->next, c->monitor)))
  2018 			return;
  2018 			return;
  2019 	detach(c);
  2019 	detach(c);
  2020 	attach(c);
  2020 	attach(c);
  2021 	focus(c);
  2021 	focus(c);