---- - dwm.c | 17 +++++++++++++++++ - 1 file changed, 17 insertions(+) - -diff --git a/dwm.c b/dwm.c -index 664c527..4bc877d 100644 ---- a/dwm.c -+++ b/dwm.c +diff --git dwm.c dwm.c +index 5e4d494..bdb1446 100644 +--- dwm.c ++++ dwm.c _AT_@ -170,6 +170,7 @@ static void focusin(XEvent *e); static void focusmon(const Arg *arg); static void focusstack(const Arg *arg); _AT_@ -23,16 +10,7 @@ index 664c527..4bc877d 100644 static int getrootptr(int *x, int *y); static long getstate(Window w); static int gettextprop(Window w, Atom atom, char *text, unsigned int size); -_AT_@ -653,6 +654,8 @@ destroynotify(XEvent *e) - - if ((c = wintoclient(ev->window))) - unmanage(c, 1); -+ -+ focus(getclientundermouse()); - } - - void -_AT_@ -872,6 +875,20 @@ getatomprop(Client *c, Atom prop) +_AT_@ -872,6 +873,20 @@ getatomprop(Client *c, Atom prop) return atom; } _AT_@ -53,6 +31,12 @@ index 664c527..4bc877d 100644 int getrootptr(int *x, int *y) { --- -2.31.1 - +_AT_@ -1782,7 +1797,7 @@ unmanage(Client *c, int destroyed) + XUngrabServer(dpy); + } + free(c); +- focus(NULL); ++ focus(getclientundermouse()); + updateclientlist(); + arrange(m); + }Received on Sat Dec 18 2021 - 17:06:51 CET
This archive was generated by hypermail 2.3.0 : Sat Dec 18 2021 - 17:12:42 CET