mirror of
https://github.com/kbumsik/VirtScreen.git
synced 2025-02-15 04:41:50 +00:00
QML: Show window always on the right
This commit is contained in:
parent
66fcf5f173
commit
1576ffee49
1 changed files with 1 additions and 1 deletions
2
main.qml
2
main.qml
|
@ -320,7 +320,7 @@ ApplicationWindow {
|
||||||
var height = backend.primaryDisplayHeight;
|
var height = backend.primaryDisplayHeight;
|
||||||
var x_mid = width / 2;
|
var x_mid = width / 2;
|
||||||
var y_mid = height / 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.y = (backend.cursor_y > y_mid)? height - window.height : 0;
|
||||||
window.show();
|
window.show();
|
||||||
window.raise();
|
window.raise();
|
||||||
|
|
Loading…
Reference in a new issue