layout the titlebar right, was adding too much space when buttons were removed from the titlebar

This commit is contained in:
Dana Jansens 2003-02-14 03:13:26 +00:00
parent 059bc4dc24
commit 2f2d6e736e

View file

@ -645,45 +645,44 @@ void Frame::layoutTitle()
geom.icon_x = x;
XMapWindow(**otk::display, _icon);
XMoveWindow(**otk::display, _icon, x, geom.bevel + 1);
x += geom.button_size;
x += geom.button_size + geom.bevel;
break;
case 'd':
case 'D':
if (!d) break;
XMapWindow(**otk::display, _desk);
XMoveWindow(**otk::display, _desk, x, geom.bevel + 1);
x += geom.button_size;
x += geom.button_size + geom.bevel;
break;
case 'i':
case 'I':
if (!i) break;
XMapWindow(**otk::display, _iconify);
XMoveWindow(**otk::display, _iconify, x, geom.bevel + 1);
x += geom.button_size;
x += geom.button_size + geom.bevel;
break;
case 't':
case 'T':
if (!t) break;
XMapWindow(**otk::display, _label);
XMoveWindow(**otk::display, _label, x, geom.bevel);
x += geom.label_width;
x += geom.label_width + geom.bevel;
break;
case 'm':
case 'M':
if (!m) break;
XMapWindow(**otk::display, _max);
XMoveWindow(**otk::display, _max, x, geom.bevel + 1);
x += geom.button_size;
x += geom.button_size + geom.bevel;
break;
case 'c':
case 'C':
if (!c) break;
XMapWindow(**otk::display, _close);
XMoveWindow(**otk::display, _close, x, geom.bevel + 1);
x += geom.button_size;
x += geom.button_size + geom.bevel;
break;
}
x += geom.bevel;
}
}