about summary refs log tree commit diff stats
path: root/view.c
diff options
context:
space:
mode:
Diffstat (limited to 'view.c')
-rw-r--r--view.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/view.c b/view.c
index 86902d4..21efa16 100644
--- a/view.c
+++ b/view.c
@@ -68,9 +68,8 @@ dofloat(Arg *arg)
 		else
 			ban(c);
 	}
-	if(!(fc = sel) || !isvisible(fc))
-		fc = getnext(clients);
-	focus(fc);
+	if(!sel || !isvisible(sel))
+		focus(getnext(clients));
 	restack();
 }
 
@@ -131,9 +130,8 @@ dotile(Arg *arg)
 		else
 			ban(c);
 	}
-	if(!(fc = sel) || !isvisible(fc))
-		fc = getnext(clients);
-	focus(fc);
+	if(!sel || !isvisible(sel))
+		focus(getnext(clients));
 	restack();
 }
 
:15:30 -0500 committer elioat <elioat@tilde.institute> 2022-12-03 14:15:30 -0500 sample project' href='/elioat/december-2022/commit/src/tmp.rkt?id=e2e78c037ad9fa5429b5aaa13a454f647f9c9416'>e2e78c0 ^
f111455 ^


82313cf ^

742cf26 ^


f111455 ^
ef8f76b ^

120f12b ^


742cf26 ^

ef8f76b ^


120f12b ^
742cf26 ^
ee9e7a3 ^
120f12b ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63