1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-12 12:58:16 +03:00

block requestActivate() for wayland

--requestActivate is not supported under wayland
This commit is contained in:
Michail Vourlakos 2019-03-09 20:19:26 +02:00
parent faf38820d5
commit 1dba8d1841
2 changed files with 6 additions and 4 deletions

View File

@ -130,7 +130,7 @@ void SecondaryConfigView::init()
syncGeometry();
syncSlideEffect();
if (m_parent) {
if (m_parent && KWindowSystem::isPlatformX11()) {
m_parent->requestActivate();
}
@ -213,7 +213,7 @@ void SecondaryConfigView::syncGeometry()
//! after placement request to activate the main config window in order to avoid
//! rare cases of closing settings window from secondaryConfigView->focusOutEvent
if (m_parent) {
if (m_parent && KWindowSystem::isPlatformX11()) {
m_parent->requestActivate();
}
}

View File

@ -349,7 +349,9 @@ void View::showConfigurationInterface(Plasma::Applet *applet)
if (m_configView->applet() == applet) {
m_configView->setVisible(true);
//m_configView->show();
m_configView->requestActivate();
if (KWindowSystem::isPlatformX11()) {
m_configView->requestActivate();
}
return;
} else {
m_configView->setVisible(false);
@ -987,7 +989,7 @@ bool View::event(QEvent *e)
case QEvent::Enter:
m_containsMouse = true;
if (m_configView) {
if (m_configView && KWindowSystem::isPlatformX11()) {
m_configView->requestActivate();
}
break;