remove toggletag

This commit is contained in:
korei999 2023-11-29 22:03:38 +02:00
parent 035bc3b1a1
commit 53ecb8ce9a
2 changed files with 5 additions and 23 deletions

18
dwl.c
View file

@ -342,7 +342,6 @@ static void vertile(Monitor *m);
static void togglebar(const Arg *arg);
static void togglefloating(const Arg *arg);
static void togglefullscreen(const Arg *arg);
static void toggletag(const Arg *arg);
static void toggleview(const Arg *arg);
static void unlocksession(struct wl_listener *listener, void *data);
static void unmaplayersurfacenotify(struct wl_listener *listener, void *data);
@ -2824,23 +2823,6 @@ togglefullscreen(const Arg *arg)
setfullscreen(sel, !sel->isfullscreen);
}
void
toggletag(const Arg *arg)
{
uint32_t newtags;
Client *sel = focustop(selmon);
if (!sel)
return;
newtags = sel->tags ^ (arg->ui & TAGMASK);
if (!newtags)
return;
sel->tags = newtags;
focusclient(focustop(selmon), 1);
arrange(selmon);
printstatus();
}
void
toggleview(const Arg *arg)
{