layout the titlebar right, was adding too much space when buttons were removed from the titlebar
This commit is contained in:
parent
059bc4dc24
commit
2f2d6e736e
1 changed files with 6 additions and 7 deletions
13
src/frame.cc
13
src/frame.cc
|
@ -645,45 +645,44 @@ void Frame::layoutTitle()
|
||||||
geom.icon_x = x;
|
geom.icon_x = x;
|
||||||
XMapWindow(**otk::display, _icon);
|
XMapWindow(**otk::display, _icon);
|
||||||
XMoveWindow(**otk::display, _icon, x, geom.bevel + 1);
|
XMoveWindow(**otk::display, _icon, x, geom.bevel + 1);
|
||||||
x += geom.button_size;
|
x += geom.button_size + geom.bevel;
|
||||||
break;
|
break;
|
||||||
case 'd':
|
case 'd':
|
||||||
case 'D':
|
case 'D':
|
||||||
if (!d) break;
|
if (!d) break;
|
||||||
XMapWindow(**otk::display, _desk);
|
XMapWindow(**otk::display, _desk);
|
||||||
XMoveWindow(**otk::display, _desk, x, geom.bevel + 1);
|
XMoveWindow(**otk::display, _desk, x, geom.bevel + 1);
|
||||||
x += geom.button_size;
|
x += geom.button_size + geom.bevel;
|
||||||
break;
|
break;
|
||||||
case 'i':
|
case 'i':
|
||||||
case 'I':
|
case 'I':
|
||||||
if (!i) break;
|
if (!i) break;
|
||||||
XMapWindow(**otk::display, _iconify);
|
XMapWindow(**otk::display, _iconify);
|
||||||
XMoveWindow(**otk::display, _iconify, x, geom.bevel + 1);
|
XMoveWindow(**otk::display, _iconify, x, geom.bevel + 1);
|
||||||
x += geom.button_size;
|
x += geom.button_size + geom.bevel;
|
||||||
break;
|
break;
|
||||||
case 't':
|
case 't':
|
||||||
case 'T':
|
case 'T':
|
||||||
if (!t) break;
|
if (!t) break;
|
||||||
XMapWindow(**otk::display, _label);
|
XMapWindow(**otk::display, _label);
|
||||||
XMoveWindow(**otk::display, _label, x, geom.bevel);
|
XMoveWindow(**otk::display, _label, x, geom.bevel);
|
||||||
x += geom.label_width;
|
x += geom.label_width + geom.bevel;
|
||||||
break;
|
break;
|
||||||
case 'm':
|
case 'm':
|
||||||
case 'M':
|
case 'M':
|
||||||
if (!m) break;
|
if (!m) break;
|
||||||
XMapWindow(**otk::display, _max);
|
XMapWindow(**otk::display, _max);
|
||||||
XMoveWindow(**otk::display, _max, x, geom.bevel + 1);
|
XMoveWindow(**otk::display, _max, x, geom.bevel + 1);
|
||||||
x += geom.button_size;
|
x += geom.button_size + geom.bevel;
|
||||||
break;
|
break;
|
||||||
case 'c':
|
case 'c':
|
||||||
case 'C':
|
case 'C':
|
||||||
if (!c) break;
|
if (!c) break;
|
||||||
XMapWindow(**otk::display, _close);
|
XMapWindow(**otk::display, _close);
|
||||||
XMoveWindow(**otk::display, _close, x, geom.bevel + 1);
|
XMoveWindow(**otk::display, _close, x, geom.bevel + 1);
|
||||||
x += geom.button_size;
|
x += geom.button_size + geom.bevel;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
x += geom.bevel;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue