From cb89a1f15534df95f0ff96695cd363a4f229255b Mon Sep 17 00:00:00 2001 From: Douglas Rumbaugh Date: Mon, 5 Dec 2022 15:49:59 -0500 Subject: Tag-0: Focus a window's tags by clicking on it in tag-0 --- dwm.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'dwm.c') diff --git a/dwm.c b/dwm.c index 37096d8..617cda1 100644 --- a/dwm.c +++ b/dwm.c @@ -267,6 +267,8 @@ static void updatestatus(void); static void updatetitle(Client *c); static void updatewindowtype(Client *c); static void updatewmhints(Client *c); + +static void t0_view(const Arg *arg); static void view(const Arg *arg); static void view_t0(const Arg *arg); static Client *wintoclient(Window w); @@ -2441,6 +2443,15 @@ updatewmhints(Client *c) } } + +void +t0_view(const Arg *arg) +{ + if (selmon->pertag->curtag == 0) { + view(arg); + } +} + void view(const Arg *arg) { -- cgit v1.2.3