[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:
parent
8b1e2fd50e
commit
e35ed5088a
3 changed files with 4 additions and 2 deletions
|
@ -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>Splash Screen</para></listitem>
|
||||||
<listitem><para>Desktop</para></listitem>
|
<listitem><para>Desktop</para></listitem>
|
||||||
<listitem><para>Standalone Menubar</para></listitem>
|
<listitem><para>Standalone Menubar</para></listitem>
|
||||||
|
<listitem><para>On Screen Display</para></listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
|
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
|
@ -721,7 +721,8 @@ QList<OptionsModel::Data> RulesModel::windowTypesModelData() const
|
||||||
{ NET::Splash, i18n("Splash Screen") , QIcon::fromTheme("embosstool") },
|
{ NET::Splash, i18n("Splash Screen") , QIcon::fromTheme("embosstool") },
|
||||||
{ NET::Desktop, i18n("Desktop") , QIcon::fromTheme("desktop") },
|
{ NET::Desktop, i18n("Desktop") , QIcon::fromTheme("desktop") },
|
||||||
// { NET::Override, i18n("Unmanaged Window") }, deprecated
|
// { 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;
|
return modelData;
|
||||||
}
|
}
|
||||||
|
|
|
@ -182,7 +182,7 @@
|
||||||
<entry name="type" type="Int">
|
<entry name="type" type="Int">
|
||||||
<label>Set window type to</label>
|
<label>Set window type to</label>
|
||||||
<min code="true">NET::Normal</min>
|
<min code="true">NET::Normal</min>
|
||||||
<max code="true">NET::Splash</max>
|
<max code="true">NET::CriticalNotification</max>
|
||||||
<default code="true">NET::Unknown</default>
|
<default code="true">NET::Unknown</default>
|
||||||
</entry>
|
</entry>
|
||||||
<entry name="typerule" type="Int">
|
<entry name="typerule" type="Int">
|
||||||
|
|
Loading…
Reference in a new issue