diff options
author | rsc <devnull@localhost> | 2004-08-13 14:23:41 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-08-13 14:23:41 +0000 |
commit | bdf49b7ee0229aa7c871402aed264789c901ff69 (patch) | |
tree | 724183c91a17caf54e89b3ecd25035bb35e3ab0c /src/cmd/rio | |
parent | 2c1b986edff846e76c1ae7b04a23807055293366 (diff) | |
download | plan9port-bdf49b7ee0229aa7c871402aed264789c901ff69.tar.gz plan9port-bdf49b7ee0229aa7c871402aed264789c901ff69.tar.bz2 plan9port-bdf49b7ee0229aa7c871402aed264789c901ff69.zip |
better handling of top/active
Diffstat (limited to 'src/cmd/rio')
-rw-r--r-- | src/cmd/rio/event.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/cmd/rio/event.c b/src/cmd/rio/event.c index 39aff18a..5b13e871 100644 --- a/src/cmd/rio/event.c +++ b/src/cmd/rio/event.c @@ -130,6 +130,12 @@ configurereq(XConfigureRequestEvent *e) if (e->value_mask & CWBorderWidth) c->border = e->border_width; gravitate(c, 0); + if (e->value_mask & CWStackMode) { + if (e->detail == Above) + top(c); + else + e->value_mask &= ~CWStackMode; + } if (c->parent != c->screen->root && c->window == e->window) { wc.x = c->x-BORDER; wc.y = c->y-BORDER; @@ -140,13 +146,10 @@ configurereq(XConfigureRequestEvent *e) wc.stack_mode = e->detail; XConfigureWindow(dpy, c->parent, e->value_mask, &wc); sendconfig(c); - } - if (e->value_mask & CWStackMode) { - if (wc.stack_mode == Above) { + if (e->value_mask & CWStackMode) { top(c); active(c); - }else - e->value_mask &= ~CWStackMode; + } } } |