Commit cad50cb7 authored by David Redondo's avatar David Redondo 🏎 Committed by Nate Graham
Browse files

SwitcherBackend: Only create the workaround window on wayland

Not needed on X
BUG:443968
parent 119f55b2
......@@ -229,7 +229,7 @@ void SwitcherBackend::switchToActivity(Direction direction)
void SwitcherBackend::keybdSwitchedToAnotherActivity()
{
m_lastInvokedAction = dynamic_cast<QAction *>(sender());
if (!qGuiApp->focusWindow() && !m_inputWindow) {
if (KWindowSystem::isPlatformWayland() && !qGuiApp->focusWindow() && !m_inputWindow) {
// create a new Window so the compositor sends us modifier info
m_inputWindow = new QRasterWindow();
m_inputWindow->setGeometry(0, 0, 1, 1);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment