From 89a2fac05ad5cef1842f6d8cee8351ffd17c7095 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Fri, 29 Jan 2021 23:24:58 -0500 Subject: Only skip setting swap in windowShow With the early return, mainUpdate doesn't get called in cases where other functions expect windowShow to call it, such as when closing or moving windows. --- ui.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ui.c b/ui.c index 23312ed..c2c848f 100644 --- a/ui.c +++ b/ui.c @@ -770,10 +770,11 @@ static void inputUpdate(void) { } static void windowShow(uint num) { - windows.user = num; - if (windows.show == num) return; - windows.swap = windows.show; + if (num != windows.show) { + windows.swap = windows.show; + } windows.show = num; + windows.user = num; mark(windows.ptrs[windows.swap]); unmark(windows.ptrs[windows.show]); mainUpdate(); -- cgit 1.4.0 class='sub right'>
summary refs log tree commit diff
path: root/bin/bri.c (unfollow)
Commit message (Expand)Author
2020-09-11Use MacPorts rather than pkgsrcJune McEnroe
2020-09-11Add debian VM name to sshJune McEnroe
2020-09-11Add influencer tweetJune McEnroe
2020-09-10Add The Kingdom of GodsJune McEnroe
2020-09-07Add SunglassesJune McEnroe
2020-09-06Add Between the BreathsJune McEnroe
2020-09-04Open /dev/tty in nudgeJune McEnroe
2020-09-04Add nudgeJune McEnroe
2020-09-03Build fbclock with -lzJune McEnroe
2020-08-29Add tweets from retweetsJune McEnroe