linux-qubasis
linux oasis port as a qubes template
git clone https://9o.is/git/linux-qubasis.git
0002-bug-fix-hide-vis-cursor-on-prev-next-win.patch
(912B)
1 From 9a2bcb5dc58cefef9213ad41a32829dc01c219d2 Mon Sep 17 00:00:00 2001
2 From: Jul <jul@qh.is>
3 Date: Mon, 13 Oct 2025 01:55:46 +0800
4 Subject: [PATCH] bug fix: hide vis cursor on prev/next win
5
6 ---
7 vis.c | 10 ++++++----
8 1 file changed, 6 insertions(+), 4 deletions(-)
9
10 diff --git a/vis.c b/vis.c
11 index 08ee6b2..23ac26c 100644
12 --- a/vis.c
13 +++ b/vis.c
14 @@ -461,16 +461,18 @@ void vis_window_next(Vis *vis) {
15 if (!sel)
16 return;
17 vis_window_focus(sel->next ? sel->next : vis->windows);
18 + vis_window_invalidate(sel);
19 }
20
21 void vis_window_prev(Vis *vis) {
22 Win *sel = vis->win;
23 if (!sel)
24 return;
25 - sel = sel->prev;
26 - if (!sel)
27 - for (sel = vis->windows; sel->next; sel = sel->next);
28 - vis_window_focus(sel);
29 + Win *prev = sel->prev;
30 + if (!prev)
31 + for (prev = vis->windows; prev->next; prev = prev->next);
32 + vis_window_focus(prev);
33 + vis_window_invalidate(sel);
34 }
35
36 void vis_draw(Vis *vis) {
37 --
38 2.51.0
39