applied denisg patch, added a busy wait at wmiirc startup

This commit is contained in:
Anselm R. Garbe 2006-03-12 00:35:15 +01:00
parent b228ff4171
commit c9feb28a3c
2 changed files with 23 additions and 13 deletions

View File

@ -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;

View File

@ -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