about summary refs log tree commit diff stats
path: root/view.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-09-04 10:10:08 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-09-04 10:10:08 +0200
commitd39d00057ce609e726b2769f953485dc4c7403cc (patch)
treeafbbc160ffd6453b371a088a873974da82aa2c57 /view.c
parent26157e6973f240a9b5ee407b9d2d5eca9358844f (diff)
downloaddwm-d39d00057ce609e726b2769f953485dc4c7403cc.tar.gz
reducing focus calls (sanders patch)
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();
 }
 
2006-07-10 16:49:43 +0200 added gridmenu' href='/acidbong/suckless/dwm/commit/Makefile?h=5.2&id=dbf7e03996032a6def3b8e97468b78d6da9e8c88'>dbf7e03 ^
1076f2b



42277b1 ^
5d3fd37 ^
a2d56f6 ^
99b126d ^

1076f2b
650a1fb ^
3d48f33 ^

1076f2b

4d55eee ^
db876f9 ^
dbf7e03 ^

4d55eee ^


10d13f0 ^
4d55eee ^


dbf7e03 ^

4d55eee ^
dbf7e03 ^
4d55eee ^


dbf7e03 ^
ad4962c ^
4d55eee ^
dbf7e03 ^

4d55eee ^



dc5c070 ^

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