AppletPopup window type should accept focus.

AppletPopup window type should accept focus, behaving like other window types like
Dock. At the moment it is instead behaving like notification, which seems wrong.
This should also fix a failing unit test.
This commit is contained in:
Luca Carlon 2022-05-29 11:47:30 +02:00 committed by Vlad Zahorodnii
parent 7865a9b355
commit 2d563dc63f

View file

@ -1065,7 +1065,6 @@ bool XdgToplevelWindow::acceptsFocus() const
switch (m_plasmaShellSurface->role()) {
case PlasmaShellSurfaceInterface::Role::Notification:
case PlasmaShellSurfaceInterface::Role::CriticalNotification:
case PlasmaShellSurfaceInterface::Role::AppletPopup:
return m_plasmaShellSurface->panelTakesFocus();
default:
break;