wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit c9feb28a3c33d503fba9ecd495e8daf78b4a7c3e
parent b228ff41718a2865b0d552042f65e3c86d414a9c
Author: Anselm R. Garbe <garbeam@wmii.de>
Date:   Sun, 12 Mar 2006 00:35:15 +0100

applied denisg patch, added a busy wait at wmiirc startup


Diffstat:
cmd/wm/event.c | 32++++++++++++++++++++------------
rc/wmiirc | 4+++-
2 files changed, 23 insertions(+), 13 deletions(-)

diff --git a/cmd/wm/event.c b/cmd/wm/event.c @@ -131,14 +131,16 @@ handle_configurerequest(XEvent *e) if(c) { gravitate(c, True); - if(ev->value_mask & CWX) - c->rect.x = ev->x; - if(ev->value_mask & CWY) - c->rect.y = ev->y; - if(ev->value_mask & CWWidth) - c->rect.width = ev->width; - if(ev->value_mask & CWHeight) - c->rect.height = ev->height; + if(c->frame && (area2index(c->frame[c->sel]->area) == 0)) { + if(ev->value_mask & CWX) + c->rect.x = ev->x; + if(ev->value_mask & CWY) + c->rect.y = ev->y; + if(ev->value_mask & CWWidth) + c->rect.width = ev->width; + if(ev->value_mask & CWHeight) + c->rect.height = ev->height; + } if(ev->value_mask & CWBorderWidth) c->border = ev->border_width; @@ -162,12 +164,18 @@ handle_configurerequest(XEvent *e) wc.x = ev->x; wc.y = ev->y; - if(c && c->frame) { - wc.x = def.border; - wc.y = bar_height(); - } wc.width = ev->width; wc.height = ev->height; + + if(c && c->frame) { + wc.x = def.border; + wc.y = bar_height(); + if(area2index(c->frame[c->sel]->area) > 0) { + wc.width = c->rect.width; + wc.height = c->rect.height; + } + } + wc.border_width = 0; wc.sibling = None; wc.stack_mode = Above; diff --git a/rc/wmiirc b/rc/wmiirc @@ -2,7 +2,9 @@ # configure wmii # give wmiiwm a chance to start -sleep 1 +while ! wmiir read / > /dev/null 2>&1; do +: +done xwrite() { file="$1"; shift