X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=event.c;h=c9ad3877f3fc2cf11f17f9bf17c2a3cbe81e4963;hp=23dcf5556c3437f6e01551d5abf9229a00a91599;hb=184471b4bbd1736794a76d2b703659de0339322b;hpb=b003a35fde6e83bd65efa6d195d96a835fd457ea diff --git a/event.c b/event.c index 23dcf55..c9ad387 100644 --- a/event.c +++ b/event.c @@ -1,4 +1,4 @@ -/* (C)opyright MMVI Anselm R. Garbe +/* (C)opyright MMVI-MMVII Anselm R. Garbe * See LICENSE file for license details. */ #include "dwm.h" @@ -161,7 +161,6 @@ configurerequest(XEvent *e) { if((c = getclient(ev->window))) { c->ismax = False; - gravitate(c, True); if(ev->value_mask & CWX) c->x = ev->x; if(ev->value_mask & CWY) @@ -172,7 +171,6 @@ configurerequest(XEvent *e) { c->h = ev->height; if(ev->value_mask & CWBorderWidth) c->border = ev->border_width; - gravitate(c, False); wc.x = c->x; wc.y = c->y; wc.width = c->w; @@ -238,13 +236,13 @@ expose(XEvent *e) { if(barwin == ev->window) drawstatus(); else if((c = getctitle(ev->window))) - drawtitle(c); + drawclient(c); } } static void keypress(XEvent *e) { - static unsigned int len = sizeof(key) / sizeof(key[0]); + static unsigned int len = sizeof key / sizeof key[0]; unsigned int i; KeySym keysym; XKeyEvent *ev = &e->xkey; @@ -256,7 +254,6 @@ keypress(XEvent *e) { { if(key[i].func) key[i].func(&key[i].arg); - return; } } } @@ -317,13 +314,13 @@ propertynotify(XEvent *e) { arrange(); break; case XA_WM_NORMAL_HINTS: - updatesize(c); + updatesizehints(c); break; } if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) { updatetitle(c); resizetitle(c); - drawtitle(c); + drawclient(c); } } } @@ -355,7 +352,7 @@ void (*handler[LASTEvent]) (XEvent *) = { void grabkeys(void) { - static unsigned int len = sizeof(key) / sizeof(key[0]); + static unsigned int len = sizeof key / sizeof key[0]; unsigned int i; KeyCode code;