comparison event.c @ 687:a76799907854

removed client title bar
author Anselm R. Garbe <arg@suckless.org>
date Sun, 14 Jan 2007 22:27:29 +0100
parents 7672a1041218
children 399f08187c27
comparison
equal deleted inserted replaced
686:4fd68b1485eb 687:a76799907854
194 configure(c); 194 configure(c);
195 XSync(dpy, False); 195 XSync(dpy, False);
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();
203 } 203 }
204 else { 204 else {
228 Client *c; 228 Client *c;
229 XCrossingEvent *ev = &e->xcrossing; 229 XCrossingEvent *ev = &e->xcrossing;
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;
237 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); 237 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
238 drawall(); 238 drawall();
245 XExposeEvent *ev = &e->xexpose; 245 XExposeEvent *ev = &e->xexpose;
246 246
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
255 static void 253 static void
256 keypress(XEvent *e) { 254 keypress(XEvent *e) {
329 updatesizehints(c); 327 updatesizehints(c);
330 break; 328 break;
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 }
338 } 335 }
339 336