From 855bd6cadab1e00eb324d6a654264549bcf400a5 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Wed, 27 May 2015 18:31:42 +0200 Subject: [PATCH] Ensure the panel's view position in the screen Otherwise resize gets called and xcb moves it to the screen that contains QPoint(0, 0) --- shell/panelview.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/shell/panelview.cpp b/shell/panelview.cpp index 982041d00..e42d2bfd3 100644 --- a/shell/panelview.cpp +++ b/shell/panelview.cpp @@ -60,6 +60,7 @@ PanelView::PanelView(ShellCorona *corona, QScreen *targetScreen, QWindow *parent m_background(0) { if (targetScreen) { + setPosition(targetScreen->geometry().topLeft()); setScreen(targetScreen); } setResizeMode(QQuickView::SizeRootObjectToView);