From f7469f6f0f645836122febaa74e4bb601b8cdea1 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 13 Sep 2016 16:53:34 +0200 Subject: [PATCH] restore panel when screen geometry changes the panel size and position is saved per-screen resolution so at different resolutions (or different screens) the panel always goes back where it was with the size it had. this should give a more deterministic behavior to the panel when resizing the screen (like virualbox) or docking to an external docking styation BUG:368741 reviewed-by: David Edmundson --- shell/panelview.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shell/panelview.cpp b/shell/panelview.cpp index 660723c99..cd12b5eb1 100644 --- a/shell/panelview.cpp +++ b/shell/panelview.cpp @@ -645,8 +645,7 @@ void PanelView::moveEvent(QMoveEvent *ev) void PanelView::integrateScreen() { - connect(m_screenToFollow, SIGNAL(geometryChanged(QRect)), - this, SLOT(positionPanel())); + connect(m_screenToFollow, &QScreen::geometryChanged, this, &PanelView::restore); themeChanged(); KWindowSystem::setOnAllDesktops(winId(), true); KWindowSystem::setType(winId(), NET::Dock);