Mercurial > aewl
comparison aewl.c @ 776:a3399a8964c7
no need to update the bar when the layout changes
author | meillo@marmaro.de |
---|---|
date | Mon, 16 Feb 2009 09:23:57 +0100 |
parents | d2e56ce18f5b |
children | 3835ddb75a55 |
comparison
equal
deleted
inserted
replaced
775:794a83e74023 | 776:a3399a8964c7 |
---|---|
45 #include <stdarg.h> | 45 #include <stdarg.h> |
46 #include <stdlib.h> | 46 #include <stdlib.h> |
47 #include <string.h> | 47 #include <string.h> |
48 #include <unistd.h> | 48 #include <unistd.h> |
49 #include <sys/select.h> | 49 #include <sys/select.h> |
50 #include <sys/signal.h> | |
50 #include <sys/types.h> | 51 #include <sys/types.h> |
51 #include <sys/wait.h> | 52 #include <sys/wait.h> |
52 #include <X11/cursorfont.h> | 53 #include <X11/cursorfont.h> |
53 #include <X11/keysym.h> | 54 #include <X11/keysym.h> |
54 #include <X11/Xatom.h> | 55 #include <X11/Xatom.h> |
350 if(wah / (nmaster + 1) <= 2 * BORDERPX) | 351 if(wah / (nmaster + 1) <= 2 * BORDERPX) |
351 return; | 352 return; |
352 nmaster++; | 353 nmaster++; |
353 if(sel) | 354 if(sel) |
354 arrange(); | 355 arrange(); |
355 else | |
356 drawstatus(); | |
357 } | 356 } |
358 | 357 |
359 void | 358 void |
360 decnmaster() { | 359 decnmaster() { |
361 if(nmaster <= 1) | 360 if(nmaster <= 1) |
362 return; | 361 return; |
363 nmaster--; | 362 nmaster--; |
364 if(sel) | 363 if(sel) |
365 arrange(); | 364 arrange(); |
366 else | |
367 drawstatus(); | |
368 } | 365 } |
369 | 366 |
370 Bool | 367 Bool |
371 isvisible(Client *c) { | 368 isvisible(Client *c) { |
372 return (c->tag == seltag); | 369 return (c->tag == seltag); |
407 togglemode() { | 404 togglemode() { |
408 /* only toggle between tile and max - float is just available through togglefloat */ | 405 /* only toggle between tile and max - float is just available through togglefloat */ |
409 arrange = (arrange == dotile) ? domax : dotile; | 406 arrange = (arrange == dotile) ? domax : dotile; |
410 if(sel) | 407 if(sel) |
411 arrange(); | 408 arrange(); |
412 else | 409 zoom(); |
413 drawstatus(); | |
414 } | 410 } |
415 | 411 |
416 void | 412 void |
417 toggleview() { | 413 toggleview() { |
418 seltag = !seltag; | 414 seltag = !seltag; |