aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2014-09-29 00:11:34 +0000
committerDimitri Sokolyuk <demon@dim13.org>2014-09-29 00:11:34 +0000
commit6e1f4abab272d451f3a5ce3824eda832ffba107b (patch)
tree05dbf5b72ff8199b7d5717105c9bd3c1f60e72e4
parent61eccdb8c2ea39223cd1f360412f636476e06ad0 (diff)
fix width
-rw-r--r--Display.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/Display.c b/Display.c
index 9e14965..08488df 100644
--- a/Display.c
+++ b/Display.c
@@ -129,7 +129,7 @@ static void
Resize(Widget w)
{
DisplayWidget dw = (DisplayWidget)w;
- Dimension width, height, border;
+ Dimension x, y, width, height, border;
Widget child;
int n = dw->composite.num_children;
int i;
@@ -142,7 +142,10 @@ Resize(Widget w)
child = dw->composite.children[i];
if (XtIsManaged(child)) {
border = child->core.border_width;
- XtResizeWidget(child, width - 2 * border,
+ x = dw->display.space;
+ x += i * (width + 2 * border);
+ y = dw->display.space;
+ XtConfigureWidget(child, x, y, width - 2 * border,
height - 2 * border, border);
}
}