dwm.c
changeset 1039 5fa681ba70ae
parent 1037 6f07d607d607
child 1040 b8408fc315df
equal deleted inserted replaced
1038:cdd1db1c525b 1039:5fa681ba70ae
   344 			else
   344 			else
   345 				togglefloating(NULL);
   345 				togglefloating(NULL);
   346 			movemouse(c);
   346 			movemouse(c);
   347 		}
   347 		}
   348 		else if(ev->button == Button2) {
   348 		else if(ev->button == Button2) {
   349 			if(ISTILE && !c->isfixed && c->isfloating)
   349 			if((ISTILE) && !c->isfixed && c->isfloating)
   350 				togglefloating(NULL);
   350 				togglefloating(NULL);
   351 			else
   351 			else
   352 				zoom(NULL);
   352 				zoom(NULL);
   353 		}
   353 		}
   354 		else if(ev->button == Button3 && !c->isfixed) {
   354 		else if(ev->button == Button3 && !c->isfixed) {
  1400 
  1400 
  1401 void
  1401 void
  1402 setmwfact(const char *arg) {
  1402 setmwfact(const char *arg) {
  1403 	double delta;
  1403 	double delta;
  1404 
  1404 
  1405 	if(!ISTILE)
  1405 	if(!(ISTILE))
  1406 		return;
  1406 		return;
  1407 	/* arg handling, manipulate mwfact */
  1407 	/* arg handling, manipulate mwfact */
  1408 	if(arg == NULL)
  1408 	if(arg == NULL)
  1409 		mwfact = MWFACT;
  1409 		mwfact = MWFACT;
  1410 	else if(1 == sscanf(arg, "%lf", &delta)) {
  1410 	else if(1 == sscanf(arg, "%lf", &delta)) {
  1861 
  1861 
  1862 void
  1862 void
  1863 zoom(const char *arg) {
  1863 zoom(const char *arg) {
  1864 	Client *c;
  1864 	Client *c;
  1865 
  1865 
  1866 	if(!sel || !ISTILE || sel->isfloating)
  1866 	if(!sel || !(ISTILE) || sel->isfloating)
  1867 		return;
  1867 		return;
  1868 	if((c = sel) == nexttiled(clients))
  1868 	if((c = sel) == nexttiled(clients))
  1869 		if(!(c = nexttiled(c->next)))
  1869 		if(!(c = nexttiled(c->next)))
  1870 			return;
  1870 			return;
  1871 	detach(c);
  1871 	detach(c);