diff options
Diffstat (limited to 'src/cmd/rio/event.c')
-rw-r--r-- | src/cmd/rio/event.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/cmd/rio/event.c b/src/cmd/rio/event.c index 36c0cdc0..b237cd1d 100644 --- a/src/cmd/rio/event.c +++ b/src/cmd/rio/event.c @@ -138,8 +138,14 @@ configurereq(XConfigureRequestEvent *e) if(e->value_mask & CWBorderWidth) c->border = e->border_width; - if((e->value_mask & (CWX|CWY|CWWidth|CWHeight)) == (CWWidth|CWHeight) - && c->dx >= c->screen->width && c->dy >= c->screen->height){ + if(!(e->value_mask & (CWX|CWY))){ + e->x = 0; + e->y = 0; + } + + if((e->value_mask & (CWWidth|CWHeight)) == (CWWidth|CWHeight) + && c->dx >= c->screen->width && c->dy >= c->screen->height + && e->x == 0 && e->y == 0){ c->border = 0; e->value_mask |= CWX|CWY; }else |