fix: focuslastondestroy patch typos

This commit is contained in:
AngeD 2023-10-28 12:27:52 +02:00
parent 434d3b2428
commit 3416889521

View File

@ -1,5 +1,5 @@
diff --git a/dwm.c b/dwm.c
index e5efb6a..c46e03f 100644
index e5efb6a..750783a 100644
--- a/dwm.c
+++ b/dwm.c
@@ -170,6 +170,7 @@ static void focusin(XEvent *e);
@ -28,9 +28,11 @@ index e5efb6a..c46e03f 100644
int
getrootptr(int *x, int *y)
{
@@ -2042,6 +2054,7 @@ view(const Arg *arg)
@@ -2040,8 +2052,8 @@ view(const Arg *arg)
selmon->seltags ^= 1; /* toggle sel tagset */
if (arg->ui & TAGMASK)
selmon->tagset[selmon->seltags] = arg->ui & TAGMASK;
- focus(NULL);
- focus(NULL);
arrange(selmon);
+ focus(getclientptr());
}