[hackers] [dwm] thanks to recursions on IRC for his remark || garbeam

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

changeset: 1566:1a77487eab7d
parent: 1564:4548c824adac
user: garbeam_AT_gmail.com
date: Wed Jul 20 18:30:51 2011 +0000
files: dwm.c
description:
thanks to recursions on IRC for his remark

diff -r 4548c824adac -r 1a77487eab7d dwm.c
--- a/dwm.c Sun Jul 10 21:25:23 2011 +0100
+++ b/dwm.c Wed Jul 20 18:30:51 2011 +0000
@@ -615,14 +615,22 @@
                         c->bw = ev->border_width;
                 else if(c->isfloating || !selmon->lt[selmon->sellt]->arrange) {
                         m = c->mon;
- if(ev->value_mask & CWX)
+ if(ev->value_mask & CWX) {
+ c->oldx = c->x;
                                 c->x = m->mx + ev->x;
- if(ev->value_mask & CWY)
+ }
+ if(ev->value_mask & CWY) {
+ c->oldy = c->y;
                                 c->y = m->my + ev->y;
- if(ev->value_mask & CWWidth)
+ }
+ if(ev->value_mask & CWWidth) {
+ c->oldw = c->w;
                                 c->w = ev->width;
- if(ev->value_mask & CWHeight)
+ }
+ if(ev->value_mask & CWHeight) {
+ c->oldh = c->h;
                                 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 */
                         if((c->y + c->h) > m->my + m->mh && c->isfloating)
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