My build of dwm
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
 

45 řádky
958 B

  1. From 3e020d93df3aaec92d2daa142cd1f0d5301b3197 Mon Sep 17 00:00:00 2001
  2. From: Mateus Auler <mateusauler@protonmail.com>
  3. Date: Fri, 17 Jul 2020 12:36:36 -0300
  4. Subject: [PATCH] Ability to map a key combination to switch focus to
  5. the master window.
  6. ---
  7. dwm.c | 16 ++++++++++++++++
  8. 1 file changed, 16 insertions(+)
  9. diff --git a/dwm.c b/dwm.c
  10. index 9fd0286..be01927 100644
  11. --- a/dwm.c
  12. +++ b/dwm.c
  13. @@ -235,6 +235,8 @@ static int xerrordummy(Display *dpy, XErrorEvent *ee);
  14. static int xerrorstart(Display *dpy, XErrorEvent *ee);
  15. static void zoom(const Arg *arg);
  16. +static void focusmaster(const Arg *arg);
  17. +
  18. /* variables */
  19. static const char broken[] = "broken";
  20. static char stext[256];
  21. @@ -2150,3 +2152,17 @@ main(int argc, char *argv[])
  22. XCloseDisplay(dpy);
  23. return EXIT_SUCCESS;
  24. }
  25. +
  26. +void
  27. +focusmaster(const Arg *arg)
  28. +{
  29. + Client *c;
  30. +
  31. + if (selmon->nmaster < 1)
  32. + return;
  33. +
  34. + c = nexttiled(selmon->clients);
  35. +
  36. + if (c)
  37. + focus(c);
  38. +}
  39. --
  40. 2.27.0