equal
deleted
inserted
replaced
339 else |
339 else |
340 togglefloating(NULL); |
340 togglefloating(NULL); |
341 movemouse(c); |
341 movemouse(c); |
342 } |
342 } |
343 else if(ev->button == Button2) { |
343 else if(ev->button == Button2) { |
344 if(isarrange(tile) && !c->isfixed && c->isfloating) |
344 if(ISTILE && !c->isfixed && c->isfloating) |
345 togglefloating(NULL); |
345 togglefloating(NULL); |
346 else |
346 else |
347 zoom(NULL); |
347 zoom(NULL); |
348 } |
348 } |
349 else if(ev->button == Button3 && !c->isfixed) { |
349 else if(ev->button == Button3 && !c->isfixed) { |
1396 |
1396 |
1397 void |
1397 void |
1398 setmwfact(const char *arg) { |
1398 setmwfact(const char *arg) { |
1399 double delta; |
1399 double delta; |
1400 |
1400 |
1401 if(isarrange(floating)) |
1401 if(!ISTILE) |
1402 return; |
1402 return; |
1403 /* arg handling, manipulate mwfact */ |
1403 /* arg handling, manipulate mwfact */ |
1404 if(arg == NULL) |
1404 if(arg == NULL) |
1405 mwfact = MWFACT; |
1405 mwfact = MWFACT; |
1406 else if(1 == sscanf(arg, "%lf", &delta)) { |
1406 else if(1 == sscanf(arg, "%lf", &delta)) { |
1848 |
1848 |
1849 void |
1849 void |
1850 zoom(const char *arg) { |
1850 zoom(const char *arg) { |
1851 Client *c; |
1851 Client *c; |
1852 |
1852 |
1853 if(!sel || isarrange(floating) || sel->isfloating) |
1853 if(!sel || !ISTILE || sel->isfloating) |
1854 return; |
1854 return; |
1855 if((c = sel) == nexttiled(clients)) |
1855 if((c = sel) == nexttiled(clients)) |
1856 if(!(c = nexttiled(c->next))) |
1856 if(!(c = nexttiled(c->next))) |
1857 return; |
1857 return; |
1858 detach(c); |
1858 detach(c); |