about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--tag.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tag.c b/tag.c
index a718ebd..4b6d513 100644
--- a/tag.c
+++ b/tag.c
@@ -47,7 +47,9 @@ dofloat(Arg *arg)
 		else
 			ban(c);
 	}
-	if((sel = getnext(clients))) {
+	if(!sel || !isvisible(sel))
+		sel = getnext(clients);
+	if(sel) {
 		focus(sel);
 		restack();
 	}
@@ -111,7 +113,9 @@ dotile(Arg *arg)
 		else
 			ban(c);
 	}
-	if((sel = getnext(clients)))
+	if(!sel || !isvisible(sel))
+		sel = getnext(clients);
+	if(sel)
 		focus(sel);
 	else
 		XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
/acidbong/suckless/dwm/blame/.hgtags?h=6.4&id=0f8249f2629543c66ffa7b684a772fda08250a5d'>^
5952157 ^
3d35ea9 ^
e3bb595 ^
a5379e9 ^
db9cda6 ^
1b492df ^
26c50c7 ^
6078d75 ^
6ff346b ^
d504005 ^
b39d0c5 ^
c34df2c ^
6cca399 ^
720b2ab ^
8e6eb52 ^
0c5f47e ^
82ddba8 ^
a2175cf ^
e06447e ^
760e23d ^
9996439 ^
3764ab4 ^
58e6866 ^
beac539 ^
a768ea9 ^
177ed7e ^
936e11f ^
b65a1e3 ^
ea4827a ^
82fed98 ^
5732e47 ^
f577fe4 ^
0d095ae ^
ab83872 ^
dc66237 ^
0d9d3e7 ^
5c48012 ^
7d071ce ^
7c9fa25 ^
81aebf8 ^
4e49d5a ^
f2190c8 ^
cc79700 ^
f651435 ^
b0477c3 ^
d5e8edc ^
91bb749 ^
dd9ee6d ^
9ce6abb ^
cf98ea2 ^
6254ef9 ^
4dea532 ^
ed1bef1 ^
7dc28d1 ^
5ab627c ^
2373940 ^
0b45199 ^
0927d63 ^
1fa31ef ^
0b72be9 ^
7879616 ^
161f2d9 ^
a704b1e ^
4c9b397 ^
f1a2a3c ^
03518ce ^
4e7c469 ^
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
64
65
66
67
68
69
70
71
72
73