Группа :: Графические оболочки/Прочее
Пакет: tabbed
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: 0004-interpret-nonexistent-large-position-numbers-as-the-.patch
Скачать
Скачать
From 8cf5ebafe1f64fe3b365b05b0f0fd90d5833c705 Mon Sep 17 00:00:00 2001
From: Michael Hendricks <michael@ndrix.org>
Date: Thu, 4 May 2023 17:21:50 +0300
Subject: [PATCH 4/5] interpret nonexistent large position numbers as the
largest known position
---
tabbed.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/tabbed.c b/tabbed.c
index 50a0f87..d228a77 100644
--- a/tabbed.c
+++ b/tabbed.c
@@ -836,8 +836,12 @@ maprequest(const XEvent *e)
void
move(const Arg *arg)
{
- if (arg->i >= 0 && arg->i < nclients)
- focus(arg->i);
+ int i;
+
+ i = arg->i < nclients ? arg->i : nclients - 1;
+
+ if (i >= 0)
+ focus(i);
}
void
--
2.33.8