about summary refs log tree commit diff stats
path: root/screen.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@wmii.de>2006-07-15 16:30:50 +0200
committerAnselm R. Garbe <garbeam@wmii.de>2006-07-15 16:30:50 +0200
commitdba23062bad40afb1a90f60b6897cf9e1ca5035b (patch)
treea2823b36177e027cf3aa82f764c37cfc6eea4503 /screen.c
parentc0705eeb65733e8c5091e47d5bdc701a0779a949 (diff)
downloaddwm-dba23062bad40afb1a90f60b6897cf9e1ca5035b.tar.gz
rearranged several stuff
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c100
1 files changed, 0 insertions, 100 deletions
diff --git a/screen.c b/screen.c
deleted file mode 100644
index d313955..0000000
--- a/screen.c
+++ /dev/null
@@ -1,100 +0,0 @@
-/*
- * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
- * See LICENSE file for license details.
- */
-
-#include "dwm.h"
-
-void (*arrange)(Arg *) = tiling;
-
-void
-view(Arg *arg)
-{
-	Client *c;
-
-	tsel = arg->i;
-	arrange(NULL);
-
-	for(c = clients; c; c = getnext(c->next))
-		drawtitle(c);
-	drawstatus();
-}
-
-void
-floating(Arg *arg)
-{
-	Client *c;
-
-	arrange = floating;
-	for(c = clients; c; c = c->next) {
-		if(c->tags[tsel])
-			resize(c, True);
-		else
-			ban(c);
-	}
-	if(sel && !sel->tags[tsel]) {
-		if((sel = getnext(clients))) {
-			higher(sel);
-			focus(sel);
-		}
-	}
-	drawstatus();
-}
-
-void
-tiling(Arg *arg)
-{
-	Client *c;
-	int n, i, w, h;
-
-	w = sw - mw;
-	arrange = tiling;
-	for(n = 0, c = clients; c; c = c->next)
-		if(c->tags[tsel] && !c->floating)
-			n++;
-
-	if(n > 1)
-		h = (sh - bh) / (n - 1);
-	else
-		h = sh - bh;
-
-	for(i = 0, c = clients; c; c = c->next) {
-		if(c->tags[tsel]) {
-			if(c->floating) {
-				higher(c);
-				resize(c, True);
-				continue;
-			}
-			if(n == 1) {
-				c->x = sx;
-				c->y = sy + bh;
-				c->w = sw - 2 * c->border;
-				c->h = sh - 2 * c->border - bh;
-			}
-			else if(i == 0) {
-				c->x = sx;
-				c->y = sy + bh;
-				c->w = mw - 2 * c->border;
-				c->h = sh - 2 * c->border - bh;
-			}
-			else {
-				c->x = sx + mw;
-				c->y = sy + (i - 1) * h + bh;
-				c->w = w - 2 * c->border;
-				c->h = h - 2 * c->border;
-			}
-			resize(c, False);
-			i++;
-		}
-		else
-			ban(c);
-	}
-	if(!sel || (sel && !sel->tags[tsel])) {
-		if((sel = getnext(clients))) {
-			higher(sel);
-			focus(sel);
-		}
-	}
-	drawstatus();
-}
-
title='Blame the previous revision' href='/akspecs/aerc/blame/go.sum?h=0.4.0&id=217e85a55d0c1047bef1e2bc41783ccd4629bfc1'>^
331b915 ^

974b22c ^

bbdf9df ^

6473848 ^

56b84d3 ^

974b22c ^

b0eaf51 ^
974b22c ^


d394fd1 ^

072bc26 ^

0c2ede5 ^

072bc26 ^

0c2ede5 ^

56b84d3 ^

475b697 ^

974b22c ^

0c2ede5 ^

1170893 ^

56b84d3 ^

974b22c ^

513e8aa ^

cef784b ^

8d20e92 ^

974b22c ^

072bc26 ^

974b22c ^



8d20e92 ^


2485d50 ^

3f452ca ^

072bc26 ^
974b22c ^
855362d ^
b0eaf51 ^


072bc26 ^
974b22c ^

b47143c ^

b0eaf51 ^


974b22c ^
072bc26 ^
0c2ede5 ^
974b22c ^

84f49e9 ^
b47143c ^

648ca98 ^

072bc26 ^



974b22c ^
b0eaf51 ^
974b22c ^



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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127