From 51c1484c786ea60f155357b40c1ee0dfbb6b44bf Mon Sep 17 00:00:00 2001 From: pelya Date: Sat, 15 Nov 2014 23:35:25 +0200 Subject: [PATCH] Off-by-pixel toolbar placement, arrgh --- src/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.cpp b/src/window.cpp index 4d0e64f000..38d3fd50e0 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -1681,7 +1681,7 @@ Point GetToolbarAlignedWindowPosition(int window_width) Point pt; if (_settings_client.gui.vertical_toolbar) { // Retermine if the window was opened from the left or the right toolbar - pt.x = (_last_clicked_toolbar_idx == 0) ? w->left + w->width : _screen.width - w->width - window_width - 1; + pt.x = (_last_clicked_toolbar_idx == 0) ? w->left + w->width : _screen.width - w->width - window_width; pt.y = w->top; } else { pt.x = _current_text_dir == TD_RTL ? w->left : (w->left + w->width) - window_width;