From 468b015ce64cf379a0e41bc53570fe83efa5b229 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 17 Jan 2012 16:49:53 +0100 Subject: [PATCH] make sure the proper window is active --- declarativeimports/plasmacomponents/fullscreendialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/declarativeimports/plasmacomponents/fullscreendialog.cpp b/declarativeimports/plasmacomponents/fullscreendialog.cpp index 3af3c6867..660a11c22 100644 --- a/declarativeimports/plasmacomponents/fullscreendialog.cpp +++ b/declarativeimports/plasmacomponents/fullscreendialog.cpp @@ -250,8 +250,12 @@ void FullScreenDialog::setVisible(const bool visible) if (m_view->isVisible() != visible) { m_background->setVisible(visible); m_view->setVisible(visible); + unsigned long state = NET::Sticky | NET::StaysOnTop | NET::KeepAbove | NET::SkipTaskbar | NET::SkipPager; + KWindowSystem::setState(m_view->effectiveWinId(), state); + KWindowSystem::setState(m_background->effectiveWinId(), state); if (visible) { m_view->raise(); + KWindowSystem::forceActiveWindow(m_view->effectiveWinId()); } } }