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

39
dwm/.dwm/patch/combo.c Normal file
View File

@@ -0,0 +1,39 @@
static int combo = 0;
#if !BAR_HOLDBAR_PATCH
void
keyrelease(XEvent *e)
{
combo = 0;
}
#endif // !BAR_HOLDBAR_PATCH
void
combotag(const Arg *arg)
{
if (selmon->sel && arg->ui & TAGMASK) {
#if SWITCHTAG_PATCH
if (selmon->sel->switchtag)
selmon->sel->switchtag = 0;
#endif // SWITCHTAG_PATCH
if (combo) {
selmon->sel->tags |= arg->ui & TAGMASK;
} else {
combo = 1;
selmon->sel->tags = arg->ui & TAGMASK;
}
focus(NULL);
arrange(selmon);
}
}
void
comboview(const Arg *arg)
{
if (combo) {
view(&((Arg) { .ui = selmon->tagset[selmon->seltags] | (arg->ui & TAGMASK) }));
} else {
combo = 1;
view(arg);
}
}