ksmserver: animate the shutdown dialog

much like the lockout plasma applet (which I implemented)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-09-14 08:24:57 +03:00
parent e9fa3491a8
commit 33980544b8

View file

@ -343,7 +343,7 @@ void KSMShutdownDlg::slotTimeout()
bool KSMShutdownDlg::execDialog()
{
KWindowSystem::setState(winId(), NET::SkipPager | NET::SkipTaskbar);
show();
animatedShow(Plasma::locationToDirection(Plasma::Location::Desktop));
Q_ASSERT(!m_eventloop);
m_eventloop = new QEventLoop(this);
return (m_eventloop->exec() == 0);