[hackers] [dwm] applied lolilolicon's floating center patch, further investigation wrt his second issue reported needed || garbeam

From: <hg_AT_suckless.org>
Date: Wed, 20 Jul 2011 20:33:23 +0200 (CEST)

changeset: 1567:8160be81e9bc
tag: tip
user: garbeam_AT_gmail.com
date: Wed Jul 20 18:33:19 2011 +0000
files: dwm.c
description:
applied lolilolicon's floating center patch, further investigation wrt his second issue reported needed

diff -r 1a77487eab7d -r 8160be81e9bc dwm.c
--- a/dwm.c Wed Jul 20 18:30:51 2011 +0000
+++ b/dwm.c Wed Jul 20 18:33:19 2011 +0000
@@ -632,9 +632,9 @@
                                 c->h = ev->height;
                         }
                         if((c->x + c->w) > m->mx + m->mw && c->isfloating)
- c->x = m->mx + (m->mw / 2 - c->w / 2); /* center in x direction */
+ c->x = m->mx + (m->mw / 2 - WIDTH(c) / 2); /* center in x direction */
                         if((c->y + c->h) > m->my + m->mh && c->isfloating)
- c->y = m->my + (m->mh / 2 - c->h / 2); /* center in y direction */
+ c->y = m->my + (m->mh / 2 - HEIGHT(c) / 2); /* center in y direction */
                         if((ev->value_mask & (CWX|CWY)) && !(ev->value_mask & (CWWidth|CWHeight)))
                                 configure(c);
                         if(ISVISIBLE(c))
Received on Wed Jul 20 2011 - 20:33:23 CEST

This archive was generated by hypermail 2.2.0 : Wed Jul 20 2011 - 20:36:07 CEST