Group :: Graphical desktop/Other
RPM: tabbed
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: 0001-tabbed-prints-the-position-number-of-the-client-befo.patch
Download
Download
From 2c201ad9464ff7d8fa28572db894b925190d335c Mon Sep 17 00:00:00 2001
From: Quentin Rameau <quinq@fifth.space>
Date: Thu, 4 May 2023 17:10:10 +0300
Subject: [PATCH 1/5] tabbed prints the position number of the client before
the window title
---
tabbed.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tabbed.c b/tabbed.c
index eafe28a..b81f269 100644
--- a/tabbed.c
+++ b/tabbed.c
@@ -326,6 +326,7 @@ drawbar(void)
XftColor *col;
int c, cc, fc, width;
char *name = NULL;
+ char tabtitle[256];
if (nclients == 0) {
dc.x = 0;
@@ -367,7 +368,9 @@ drawbar(void)
} else {
col = clients[c]->urgent ? dc.urg : dc.norm;
}
- drawtext(clients[c]->name, col);
+ snprintf(tabtitle, sizeof(tabtitle), "%d: %s",
+ c + 1, clients[c]->name);
+ drawtext(tabtitle, col);
dc.x += dc.w;
clients[c]->tabx = dc.x;
}
--
2.33.8