mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Fixed window moving 1px to the left each restart.
This commit is contained in:
parent
39a8e8193c
commit
41ba06ffc2
1 changed files with 3 additions and 1 deletions
|
@ -279,7 +279,9 @@ void WindowManager::initialize(Settings &settings, Paths &paths)
|
|||
int height = window_obj.value("height").toInt(-1);
|
||||
|
||||
if (x != -1 && y != -1 && width != -1 && height != -1) {
|
||||
window.setGeometry(x, y, width, height);
|
||||
// Have to offset x by one because qt moves the window 1px too
|
||||
// far to the left
|
||||
window.setGeometry(x + 1, y, width, height);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue