Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions panels/dock/dockpanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ bool DockPanel::init()
if (m_dockScreen != window()->screen() && qApp->screens().contains( m_dockScreen)) {
qWarning() << "m_dockScreen" << m_dockScreen << m_dockScreen->name() << "window()->screen()" << window()->screen() << window()->screen()->name();
QTimer::singleShot(10, this, [this](){
window()->setScreen(m_dockScreen);
window()->setScreen(m_dockScreen);
onWindowGeometryChanged();
});
} else {
Expand Down Expand Up @@ -335,11 +335,16 @@ void DockPanel::launcherVisibleChanged(bool visible)
{
if (visible == m_launcherShown) return;

const HideState oldHideState = hideState();
m_launcherShown = visible;
Q_EMIT hideStateChanged(hideState());
const HideState newHideState = hideState();

if (newHideState != oldHideState) {
Q_EMIT hideStateChanged(newHideState);
}
}

void DockPanel::updateDockScreen()
void DockPanel::updateDockScreen()
{
auto win = window();
if (!win)
Expand Down