[rules] Allow setting WindowType to KDE specific window type OSD

An example use case is allowing a user to write rules to put firefox
Picture in picture windows above fullscreen users

CCBUG: 439573
This commit is contained in:
David Edmundson 2021-07-06 23:23:08 +01:00
parent 8b1e2fd50e
commit e35ed5088a
3 changed files with 4 additions and 2 deletions

View file

@ -497,6 +497,7 @@ and <guibutton>Move Down</guibutton> buttons effects on how they are applied.</p
<listitem><para>Splash Screen</para></listitem>
<listitem><para>Desktop</para></listitem>
<listitem><para>Standalone Menubar</para></listitem>
<listitem><para>On Screen Display</para></listitem>
</itemizedlist>
</listitem>

View file

@ -721,7 +721,8 @@ QList<OptionsModel::Data> RulesModel::windowTypesModelData() const
{ NET::Splash, i18n("Splash Screen") , QIcon::fromTheme("embosstool") },
{ NET::Desktop, i18n("Desktop") , QIcon::fromTheme("desktop") },
// { NET::Override, i18n("Unmanaged Window") }, deprecated
{ NET::TopMenu, i18n("Standalone Menubar"), QIcon::fromTheme("open-menu-symbolic") }
{ NET::TopMenu, i18n("Standalone Menubar"), QIcon::fromTheme("open-menu-symbolic") },
{ NET::OnScreenDisplay, i18n("On Screen Display"), QIcon::fromTheme("osd-duplicate") }
};
return modelData;
}

View file

@ -182,7 +182,7 @@
<entry name="type" type="Int">
<label>Set window type to</label>
<min code="true">NET::Normal</min>
<max code="true">NET::Splash</max>
<max code="true">NET::CriticalNotification</max>
<default code="true">NET::Unknown</default>
</entry>
<entry name="typerule" type="Int">