dwm flexipatch

This commit is contained in:
2023-02-25 17:24:22 +01:00
parent 08d4104796
commit ad060cc9d8
317 changed files with 23267 additions and 10454 deletions

21
dwm/.dwm/patch/winview.c Normal file
View File

@@ -0,0 +1,21 @@
/* Selects for the view of the focused window. The list of tags */
/* to be displayed is matched to the focused window tag list. */
void
winview(const Arg* arg)
{
Window win, win_r, win_p, *win_c;
unsigned nc;
int unused;
Client* c;
Arg a;
if (!XGetInputFocus(dpy, &win, &unused)) return;
while (XQueryTree(dpy, win, &win_r, &win_p, &win_c, &nc)
&& win_p != win_r) win = win_p;
if (!(c = wintoclient(win))) return;
a.ui = c->tags;
view(&a);
}