JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
disabling configure() during resize
[dwm.git] / client.c
index 220d2a0..d691340 100644 (file)
--- a/client.c
+++ b/client.c
@@ -135,6 +135,7 @@ void
 gravitate(Client *c, Bool invert) {
        int dx = 0, dy = 0;
 
+       return;
        switch(c->grav) {
        default:
                break;
@@ -290,7 +291,7 @@ resize(Client *c, Bool sizehints, Corner sticky) {
        else
                wc.border_width = BORDERPX;
        XConfigureWindow(dpy, c->win, CWX | CWY | CWWidth | CWHeight | CWBorderWidth, &wc);
-       configure(c);
+       /*configure(c);*/
        XSync(dpy, False);
 }
 
@@ -361,12 +362,12 @@ updatetitle(Client *c) {
        if(!name.nitems)
                return;
        if(name.encoding == XA_STRING)
-               strncpy(c->name, (char *)name.value, sizeof(c->name));
+               strncpy(c->name, (char *)name.value, sizeof c->name);
        else {
                if(XmbTextPropertyToTextList(dpy, &name, &list, &n) >= Success
                                && n > 0 && *list)
                {
-                       strncpy(c->name, *list, sizeof(c->name));
+                       strncpy(c->name, *list, sizeof c->name);
                        XFreeStringList(list);
                }
        }