make sure the proper window is active
This commit is contained in:
parent
43eb9c5967
commit
468b015ce6
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user