1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-02-11 13:57:43 +03:00

position secconfigwindow properly in multi-screen

This commit is contained in:
Michail Vourlakos 2018-12-02 01:04:19 +02:00
parent 90a2bb3bc1
commit 7a55ac9922
2 changed files with 4 additions and 4 deletions

View File

@ -216,7 +216,7 @@ void DockConfigView::syncGeometry()
resize(size);
const auto location = m_dockView->containment()->location();
const auto sGeometry = screen()->geometry();
const auto sGeometry = m_dockView->screenGeometry();
int clearThickness = m_dockView->normalThickness() + m_dockView->fontPixelSize();

View File

@ -53,7 +53,7 @@ DockSecConfigView::DockSecConfigView(DockView *dockView, QWindow *parent)
setupWaylandIntegration();
setResizeMode(QQuickView::SizeViewToRootObject);
//setScreen(m_dockView->screen());
setScreen(m_dockView->screen());
if (dockView && dockView->containment()) {
setIcon(qGuiApp->windowIcon());
@ -63,7 +63,7 @@ DockSecConfigView::DockSecConfigView(DockView *dockView, QWindow *parent)
m_screenSyncTimer.setInterval(100);
connections << connect(&m_screenSyncTimer, &QTimer::timeout, this, [this]() {
// setScreen(m_dockView->screen());
setScreen(m_dockView->screen());
setFlags(wFlags());
syncGeometry();
syncSlideEffect();
@ -152,7 +152,7 @@ void DockSecConfigView::syncGeometry()
resize(size);
const auto location = m_dockView->containment()->location();
const auto sGeometry = screen()->geometry();
const auto sGeometry = m_dockView->screenGeometry();
int clearThickness = m_dockView->normalThickness() + m_dockView->fontPixelSize();