commit e64403e90c1133cae5c6f720a2ff80afbaeea1bd
parent f6979a2eb6d252af135f0434ca8318eaf9252b23
Author: Anthony Martin <ality@pbrane.org>
Date: Fri, 24 Mar 2006 21:16:58 -0800
should fix the bug reported by Fernan on the mailing list
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/cmd/wm/event.c b/cmd/wm/event.c
@@ -106,7 +106,7 @@ handle_configurerequest(XEvent *e)
if(c) {
gravitate(c, True);
- if(c->frame && (area2index(c->frame[c->sel]->area) == 0)) {
+ if(c->nframe && (area2index(c->frame[c->sel]->area) == 0)) {
if(ev->value_mask & CWX)
c->rect.x = ev->x;
if(ev->value_mask & CWY)
@@ -121,7 +121,7 @@ handle_configurerequest(XEvent *e)
gravitate(c, False);
- if(c->nframe) {
+ if(c->nframe && c->sel) {
Frame *f = c->frame[c->sel];
f->rect.x = wc.x = c->rect.x - def.border;
f->rect.y = wc.y = c->rect.y - bar_height();
@@ -143,7 +143,7 @@ handle_configurerequest(XEvent *e)
wc.width = ev->width;
wc.height = ev->height;
- if(c && c->frame) {
+ if(c && c->nframe) {
wc.x = def.border;
wc.y = bar_height();
if(area2index(c->frame[c->sel]->area) > 0) {