From 2f2d6e736ed4565564e57bdd37e5cb23826d13cf Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 14 Feb 2003 03:13:26 +0000 Subject: [PATCH] layout the titlebar right, was adding too much space when buttons were removed from the titlebar --- src/frame.cc | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/frame.cc b/src/frame.cc index edcfdfcd..9e97f2b0 100644 --- a/src/frame.cc +++ b/src/frame.cc @@ -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; } } -- 2.45.2