about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--dwm.c113
1 files changed, 57 insertions, 56 deletions
diff --git a/dwm.c b/dwm.c
index 7d2a0de..2597f4f 100644
--- a/dwm.c
+++ b/dwm.c
@@ -113,84 +113,85 @@ typedef struct {
 } Regs;
 
 /* functions */
-static void eprint(const char *errstr, ...);
-static void *emallocz(unsigned int size);
-static void spawn(const char *arg);
-static void drawsquare(Bool filled, Bool empty, unsigned long col[ColLast]);
-static unsigned long initcolor(const char *colstr);
-static void initfont(const char *fontstr);
-static Bool isoccupied(unsigned int t);
-static unsigned int textnw(const char *text, unsigned int len);
-static void drawtext(const char *text, unsigned long col[ColLast]);
-static void drawbar(void);
-static void initstyle(void);
-static void initbar(void);
-static unsigned int textw(const char *text);
-static void togglebar(const char *arg);
-static void updatebarpos(void);
+
+static void applyrules(Client *c);
+static void arrange(void);
+static void attach(Client *c);
 static void attachstack(Client *c);
-static void detachstack(Client *c);
-static void grabbuttons(Client *c, Bool focused);
-static Bool isprotodel(Client *c);
-static void setclientstate(Client *c, long state);
-static int xerrordummy(Display *dsply, XErrorEvent *ee);
 static void ban(Client *c);
-static void configure(Client *c);
-static void killclient(const char *arg);
-static void manage(Window w, XWindowAttributes *wa);
-static void resize(Client *c, int x, int y, int w, int h, Bool sizehints);
-static void unban(Client *c);
-static void unmanage(Client *c);
-static void updatesizehints(Client *c);
-static void updatetitle(Client *c);
-static Client *getclient(Window w);
-static void movemouse(Client *c);
-static void resizemouse(Client *c);
 static void buttonpress(XEvent *e);
-static void configurerequest(XEvent *e);
+static void cleanup(void);
+static void compileregs(void);
+static void configure(Client *c);
 static void configurenotify(XEvent *e);
+static void configurerequest(XEvent *e);
 static void destroynotify(XEvent *e);
+static void detach(Client *c);
+static void detachstack(Client *c);
+static void drawbar(void);
+static void drawsquare(Bool filled, Bool empty, unsigned long col[ColLast]);
+static void drawtext(const char *text, unsigned long col[ColLast]);
+static void *emallocz(unsigned int size);
 static void enternotify(XEvent *e);
+static void eprint(const char *errstr, ...);
 static void expose(XEvent *e);
-static void keypress(XEvent *e);
-static void leavenotify(XEvent *e);
-static void mappingnotify(XEvent *e);
-static void maprequest(XEvent *e);
-static void propertynotify(XEvent *e);
-static void unmapnotify(XEvent *e);
-static unsigned int idxoftag(const char *tag);
 static void floating(void); /* default floating layout */
-static void applyrules(Client *c);
-static void compileregs(void);
+static void focus(Client *c);
 static void focusnext(const char *arg);
 static void focusprev(const char *arg);
+static Client *getclient(Window w);
+static long getstate(Window w);
+static Bool gettextprop(Window w, Atom atom, char *text, unsigned int size);
+static void grabbuttons(Client *c, Bool focused);
+static unsigned int idxoftag(const char *tag);
+static void initbar(void);
+static unsigned long initcolor(const char *colstr);
+static void initfont(const char *fontstr);
 static void initlayouts(void);
+static void initstyle(void);
+static Bool isarrange(void (*func)());
 static Bool isfloating(void);
+static Bool isoccupied(unsigned int t);
+static Bool isprotodel(Client *c);
 static Bool isvisible(Client *c);
+static void keypress(XEvent *e);
+static void killclient(const char *arg);
+static void leavenotify(XEvent *e);
+static void manage(Window w, XWindowAttributes *wa);
+static void mappingnotify(XEvent *e);
+static void maprequest(XEvent *e);
+static void movemouse(Client *c);
+static Client *nexttiled(Client *c);
+static void propertynotify(XEvent *e);
+static void quit(const char *arg);
+static void resize(Client *c, int x, int y, int w, int h, Bool sizehints);
+static void resizemouse(Client *c);
 static void restack(void);
+static void scan(void);
+static void setclientstate(Client *c, long state);
 static void setlayout(const char *arg);
+static void setmwfact(const char *arg);
+static void setup(void);
+static void spawn(const char *arg);
 static void tag(const char *arg);
+static unsigned int textnw(const char *text, unsigned int len);
+static unsigned int textw(const char *text);
+static void tile(void);
+static void togglebar(const char *arg);
 static void togglefloating(const char *arg);
 static void togglemax(const char *arg);
 static void toggletag(const char *arg);
 static void toggleview(const char *arg);
+static void unban(Client *c);
+static void unmanage(Client *c);
+static void unmapnotify(XEvent *e);
+static void updatebarpos(void);
+static void updatesizehints(Client *c);
+static void updatetitle(Client *c);
 static void view(const char *arg);
-static void cleanup(void);
-static long getstate(Window w);
-static void scan(void);
-static void setup(void);
-static int xerrorstart(Display *dsply, XErrorEvent *ee);
-static Bool gettextprop(Window w, Atom atom, char *text, unsigned int size);
-static void quit(const char *arg);
 static int xerror(Display *dpy, XErrorEvent *ee);
-static void arrange(void);
-static void attach(Client *c);
-static void detach(Client *c);
-static void focus(Client *c);
-static Bool isarrange(void (*func)());
-static Client *nexttiled(Client *c);
-static void setmwfact(const char *arg);
-static void tile(void);
+static int xerrordummy(Display *dsply, XErrorEvent *ee);
+static int xerrorstart(Display *dsply, XErrorEvent *ee);
 static void zoom(const char *arg);
 
 #include "config.h"
n343' href='#n343'>343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715