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:
parent
faf38820d5
commit
1dba8d1841
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user