Fix window size

pull/4/head
cutefishd 5 years ago
parent b9863a435b
commit 7360938659

@ -10,8 +10,9 @@ import FishUI 1.0 as FishUI
Item {
id: root
width: launcher.screenRect.width
height: launcher.screenRect.height
// The window manager is forced to set the window size.
// width: launcher.screenRect.width
// height: launcher.screenRect.height
property real horizontalSpacing: root.width * 0.01 * Screen.devicePixelRatio
property real verticalSpacing: root.height * 0.01 * Screen.devicePixelRatio

@ -38,7 +38,7 @@ Launcher::Launcher(QQuickView *w)
engine()->rootContext()->setContextProperty("launcher", this);
setFlags(Qt::FramelessWindowHint);
setResizeMode(QQuickView::SizeViewToRootObject);
setResizeMode(QQuickView::SizeRootObjectToView);
setClearBeforeRendering(true);
setScreen(qApp->primaryScreen());
onGeometryChanged();

Loading…
Cancel
Save