From 699057ad33b19b223de1b74e75c8a35ba73e9898 Mon Sep 17 00:00:00 2001 From: Martin Klapetek Date: Tue, 11 Mar 2014 15:29:43 +0100 Subject: [PATCH] Emit geometry changes on screen added/removed events --- src/shell/shellcorona.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/shell/shellcorona.cpp b/src/shell/shellcorona.cpp index 6f65e1b41..21eec90cd 100644 --- a/src/shell/shellcorona.cpp +++ b/src/shell/shellcorona.cpp @@ -377,6 +377,9 @@ void ShellCorona::screenAdded(QScreen *screen) connect(screen, SIGNAL(destroyed(QObject*)), SLOT(screenRemoved(QObject*))); view->show(); + + emit availableScreenRectChanged(); + emit availableScreenRegionChanged(); } @@ -408,6 +411,10 @@ void ShellCorona::screenRemoved(QObject *screen) foreach (PanelView *view, d->panelViews) { view->setScreen(QGuiApplication::primaryScreen()); } + + emit availableScreenRectChanged(); + emit availableScreenRegionChanged(); + } void ShellCorona::createWaitingPanels()