Commit e2db5ce3 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

Support CriticalNotification window type

Differential Revision: https://phabricator.kde.org/D20631
parent 9436a2c1
......@@ -112,6 +112,11 @@ NET::WindowType WindowInfo::windowType(NET::WindowTypes supported_types) const
return NET::Tooltip;
}
break;
case KWayland::Client::PlasmaShellSurface::Role::CriticalNotification:
if (supported_types & NET::CriticalNotificationMask) {
return NET::CriticalNotification;
}
break;
default:
break;
}
......
......@@ -453,6 +453,9 @@ void WindowSystem::setType(WId win, NET::WindowType windowType)
case NET::Tooltip:
role = KWayland::Client::PlasmaShellSurface::Role::ToolTip;
break;
case NET::CriticalNotification:
role = KWayland::Client::PlasmaShellSurface::Role::CriticalNotification;
break;
default:
return;
}
......
Markdown is supported
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