Skip to content

Commit

Permalink
fix: The first attempt to switch from windowed mode to fullscreen mod…
Browse files Browse the repository at this point in the history
…e failed.

To avoid the issue caused by the onActiveChanged event triggered during mode switching, we delay the timer.

log: as title
issue: linuxdeepin/developer-center#8137
  • Loading branch information
robertkill authored and BLumia committed Apr 23, 2024
1 parent cdc72a6 commit 91d1156
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion launchercontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ LauncherController::LauncherController(QObject *parent)
m_currentFrame = QStringLiteral("FullscreenFrame");
}

m_timer->setInterval(500);
// Interval set to 500=>700ms for issue https://github.com/linuxdeepin/developer-center/issues/8137
m_timer->setInterval(700);
m_timer->setSingleShot(true);

connect(DGuiApplicationHelper::instance(), &DGuiApplicationHelper::newProcessInstance,
Expand Down

0 comments on commit 91d1156

Please sign in to comment.