about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorarg@mig29 <unknown>2006-10-26 15:05:45 +0200
committerarg@mig29 <unknown>2006-10-26 15:05:45 +0200
commit040d0f48a0b41d67004b4a0698fe21a86ebaa490 (patch)
tree49c64b85c784a78d295e6273a6083084b870273d
parent724f35a66404efdcf6f684c8616c444c5a5801cd (diff)
downloaddwm-040d0f48a0b41d67004b4a0698fe21a86ebaa490.tar.gz
apply small fix to prevent apps like mplayer wandering when toggling fullscreen
-rw-r--r--client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/client.c b/client.c
index c65a42b..49d40d5 100644
--- a/client.c
+++ b/client.c
@@ -202,8 +202,8 @@ manage(Window w, XWindowAttributes *wa) {
 	c = emallocz(sizeof(Client));
 	c->tags = emallocz(ntags * sizeof(Bool));
 	c->win = w;
-	c->x = c->tx = wa->x;
-	c->y = c->ty = wa->y;
+	c->x = c->tx = wa->x; c->x -= BORDERPX;
+	c->y = c->ty = wa->y; c->y -= BORDERPX;
 	c->w = c->tw = wa->width;
 	c->h = wa->height;
 	c->th = bh;
n40' href='#n40'>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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169