1
0
Fork 0
mirror of https://github.com/kbumsik/VirtScreen.git synced 2025-02-14 12:21:50 +00:00

QML: Show window always on the right

This commit is contained in:
Bumsik Kim 2018-05-09 08:32:07 -04:00
parent 66fcf5f173
commit 1576ffee49
No known key found for this signature in database
GPG key ID: E31041C8EC5B01C6

View file

@ -320,7 +320,7 @@ ApplicationWindow {
var height = backend.primaryDisplayHeight;
var x_mid = width / 2;
var y_mid = height / 2;
window.x = (backend.cursor_x > x_mid)? width - window.width : 0;
window.x = width - window.width; //(backend.cursor_x > x_mid)? width - window.width : 0;
window.y = (backend.cursor_y > y_mid)? height - window.height : 0;
window.show();
window.raise();