fixed autohide
fluxgen fluxgen
1 files changed,
7 insertions(+),
5 deletions(-)
jump to
M
src/Toolbar.cc
→
src/Toolbar.cc
@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Toolbar.cc,v 1.94 2003/06/24 18:33:29 fluxgen Exp $ +// $Id: Toolbar.cc,v 1.95 2003/06/25 12:33:28 fluxgen Exp $ #include "Toolbar.hh"@@ -857,8 +857,7 @@ dx = tmp + frame.bevel_w;
} else dy += frame.bevel_w; - m_theme.font().drawText( - frame.window_label.window(), + m_theme.font().drawText(frame.window_label.window(), screen().screenNumber(), m_theme.windowTextGC(), foc->title().c_str(), newlen,@@ -1176,6 +1175,10 @@ frame.label_h = frame.height;
frame.button_w = frame.height; } + // So we get at least one pixel visible in hidden mode + if (bevel_width <= border_width) + bevel_width = border_width + 1; + switch (where) { case TOPLEFT: frame.x = head_x;@@ -1193,7 +1196,7 @@
break; case TOPCENTER: - frame.x = head_x + ((head_w - frame.width) / 2); + frame.x = head_x + (head_w - frame.width) / 2; frame.y = head_y; frame.x_hidden = frame.x; frame.y_hidden = head_y + bevel_width - border_width - frame.height;@@ -1255,7 +1258,6 @@ frame.x_hidden = frame.x + frame.width - bevel_width - border_width;
frame.y_hidden = frame.y; break; } - } void Toolbar::HideHandler::timeout() {