From 5e85bc8b5c784b47cdd3015b53c5bb517500ba9c Mon Sep 17 00:00:00 2001 From: bakkeby Date: Thu, 1 Feb 2024 21:29:25 +0100 Subject: [PATCH] tab + alttab compatibility fix (conflicting function name drawtab) --- patch/alttab.c | 6 +++--- patch/alttab.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/patch/alttab.c b/patch/alttab.c index f6775d8..59e6dd9 100644 --- a/patch/alttab.c +++ b/patch/alttab.c @@ -21,7 +21,7 @@ alttab() /* redraw tab */ XRaiseWindow(dpy, alttabwin); - drawtab(ntabs, 0, m); + drawalttab(ntabs, 0, m); } void @@ -66,7 +66,7 @@ alttabend() } void -drawtab(int nwins, int first, Monitor *m) +drawalttab(int nwins, int first, Monitor *m) { Client *c; int i, h; @@ -178,7 +178,7 @@ alttabstart(const Arg *arg) i++; } - drawtab(ntabs, 1, m); + drawalttab(ntabs, 1, m); struct timespec ts = { .tv_sec = 0, .tv_nsec = 1000000 }; diff --git a/patch/alttab.h b/patch/alttab.h index 2951d04..07fed28 100644 --- a/patch/alttab.h +++ b/patch/alttab.h @@ -1,5 +1,5 @@ #include -static void drawtab(int nwins, int first, Monitor *m); +static void drawalttab(int nwins, int first, Monitor *m); static void alttabstart(const Arg *arg); static void alttabend();