summaryrefslogtreecommitdiffstats
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-01-14 22:27:29 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-01-14 22:27:29 +0100
commit6c5dc7017cff322b6402b3849c07529f5ab916fe (patch)
tree61c780a0c3c53bae1ba2566ae7a70654478602ee /event.c
parentadded missing space (diff)
downloaddwm-6c5dc7017cff322b6402b3849c07529f5ab916fe.tar.gz
dwm-6c5dc7017cff322b6402b3849c07529f5ab916fe.zip
removed client title bar
Diffstat (limited to '')
-rw-r--r--event.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/event.c b/event.c
index 2deef14..a9d2fbb 100644
--- a/event.c
+++ b/event.c
@@ -196,7 +196,7 @@ configurerequest(XEvent *e) {
196 if(c->isfloat) { 196 if(c->isfloat) {
197 resize(c, False, TopLeft); 197 resize(c, False, TopLeft);
198 if(!isvisible(c)) 198 if(!isvisible(c))
199 ban(c); 199 XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y);
200 } 200 }
201 else 201 else
202 arrange(); 202 arrange();
@@ -230,7 +230,7 @@ enternotify(XEvent *e) {
230 230
231 if(ev->mode != NotifyNormal || ev->detail == NotifyInferior) 231 if(ev->mode != NotifyNormal || ev->detail == NotifyInferior)
232 return; 232 return;
233 if(((c = getclient(ev->window)) || (c = getctitle(ev->window))) && isvisible(c)) 233 if((c = getclient(ev->window)) && isvisible(c))
234 focus(c); 234 focus(c);
235 else if(ev->window == root) { 235 else if(ev->window == root) {
236 issel = True; 236 issel = True;
@@ -247,8 +247,6 @@ expose(XEvent *e) {
247 if(ev->count == 0) { 247 if(ev->count == 0) {
248 if(barwin == ev->window) 248 if(barwin == ev->window)
249 drawstatus(); 249 drawstatus();
250 else if((c = getctitle(ev->window)))
251 drawclient(c);
252 } 250 }
253} 251}
254 252
@@ -331,7 +329,6 @@ propertynotify(XEvent *e) {
331 } 329 }
332 if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) { 330 if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) {
333 updatetitle(c); 331 updatetitle(c);
334 resizetitle(c);
335 drawclient(c); 332 drawclient(c);
336 } 333 }
337 } 334 }