Warning, /plasma/kwin/doc/windowspecific/index.docbook is written in an unsupported language. File is not indexed.

0001 <?xml version="1.0" ?>
0002 <!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.5-Based Variant V1.1//EN" "dtd/kdedbx45.dtd" [
0003   <!ENTITY % addindex "IGNORE">
0004   <!ENTITY % English "INCLUDE">
0005 ]>
0006 <book id="windowspecific" lang="&language;">
0007 <bookinfo>
0008 <title>Window Rules</title>
0009 <authorgroup>
0010 <author>&Lauri.Watts; &Lauri.Watts.mail;</author>
0011 <author>
0012 <personname>
0013       <firstname>Parts of this documentation was converted from the KDE UserBase <ulink url="https://userbase.kde.org/KWin Rules">KWin Rules</ulink> page and updated by the &kde; Documentation team to Plasma 5.8.</firstname>
0014 <surname></surname>
0015 </personname>
0016       </author>
0017 <!-- TRANS:ROLES_OF_TRANSLATORS -->
0018       </authorgroup>
0019 <legalnotice>&FDLNotice;</legalnotice>
0020 <date>2016-06-23</date>
0021       <releaseinfo>Plasma 5.8</releaseinfo>
0022 <abstract>
0023 <para>Here you can customize window settings specifically only for
0024 some windows.</para>
0025       </abstract>
0026 <keywordset>
0027 <keyword>KDE</keyword>
0028 <keyword>KControl</keyword>
0029 <keyword>window settings</keyword>
0030 <keyword>window placement</keyword>
0031 <keyword>window size</keyword>
0032 </keywordset>
0033 </bookinfo>
0034 <chapter id="window-specific">
0035 <title>Window Specific Settings: Quick Start</title>
0036 
0037 <para>Here you can customize window settings specifically only for
0038 some windows.</para>
0039 
0040 <note>
0041 <para>Please note that this configuration will not take effect if you
0042 do not use &kwin; as your window manager. If you do use a different
0043 window manager, please refer to its documentation for how to customize
0044 window behavior.</para>
0045 </note>
0046 
0047 <para>Many of the settings you can configure here are those you can
0048 configure on a global basis in the <guilabel>Window Behavior</guilabel>
0049 &systemsettings; module, however some of them are even more detailed.</para>
0050 
0051 <para>They encompass geometry, placement, whether a window should be
0052 kept above or below others, focus stealing prevention, and translucency
0053 settings.</para>
0054 
0055 <para>You can access this module in two ways: from the titlebar of the
0056 application you wish to configure, or from the &systemsettings;.  If you
0057 start it from within &systemsettings; you can use the
0058 <guibutton>New...</guibutton> to create a window profile, and the
0059 <guibutton>Detect Window Properties</guibutton> button on the resulting dialog to
0060 partially fill in the required information for the application
0061 you wish to configure.</para>
0062 
0063 <para>You can also at any time <guibutton>Modify...</guibutton> or
0064 <guibutton>Delete</guibutton> any stored settings profile, and
0065 reorder the list.  Reordering the list using the <guibutton>Move Up</guibutton>
0066 and <guibutton>Move Down</guibutton> buttons effects on how they are applied.</para>
0067 
0068 </chapter>
0069 <!--userbase <timestamp>2012-03-09T20:50:14Z</timestamp>-->
0070 
0071 <!--userbase-content-->
0072 <chapter id="overview"><title>Overview</title> 
0073 <para>&kwin; allows the end-user to define rules to alter an application's window attributes.
0074 </para>
0075 <para>For example, when an application is started, it can be forced to always run on <emphasis>Virtual Desktop 2</emphasis>.  Or a defect in an application can be worked-around to force the window above others.
0076 </para>
0077 <para>Step-by-step <link linkend="examples">examples</link> are provided along with detailed information on using the <link linkend="kwin-rule-editor">&kwin; Rule Editor</link> to specify <link linkend="window-matching">Window Matching</link> and  <link linkend="window-attributes">Window Attributes</link>.
0078 </para>
0079 </chapter>
0080 <chapter id="examples-and-application-workaround"><title>Examples and Application Workaround</title> 
0081 <para>To see what's possible, detailed <link linkend="examples">examples</link> are provided which can also be used to model your own rules.
0082 </para>
0083 <para>A special page is to dedicated to address <link linkend="application-workarounds">Application Workaround</link>.
0084 </para>
0085 </chapter>
0086 <chapter id="kwin-rule-editor"><title>KWin Rule Editor</title> 
0087 <sect1 id="invoking-the-kwin-rule-editor"><title>Invoking the KWin Rule Editor</title> 
0088 <para>
0089 <screenshot>
0090 <screeninfo></screeninfo>
0091   <mediaobject>
0092     <imageobject>
0093       <imagedata fileref="kwin-rules-ordering.png" format="PNG"/>
0094     </imageobject>
0095     <textobject>
0096       <phrase></phrase>
0097     </textobject>
0098   </mediaobject>
0099 </screenshot>
0100 </para>
0101 <para>There are several ways to invoke the &kwin; Rule Editor.  Below are two:
0102 </para>
0103 <itemizedlist>
0104 <listitem><para>Right-click on the title-bar of any window, choose <menuchoice><guimenu>More Actions</guimenu><guimenuitem>Window Manager Settings...</guimenuitem></menuchoice> and in the <guilabel>Configure</guilabel> window, select <guilabel>Window Rules</guilabel> or</para></listitem>
0105 </itemizedlist>
0106 <itemizedlist>
0107 <listitem><para><menuchoice><guimenu>System Settings</guimenu><guisubmenu>Window Behavior</guisubmenu><guimenuitem>Window Rules</guimenuitem></menuchoice></para></listitem>
0108 </itemizedlist>
0109 <para>The main window is used to:
0110 </para>
0111 <itemizedlist>
0112 <listitem><para>Affect rules with <guilabel>New...</guilabel>, <guilabel>Modify...</guilabel> and <guilabel>Delete</guilabel></para></listitem>
0113 <listitem><para>Share rules with others via <guilabel>Import</guilabel> and <guilabel>Export</guilabel></para></listitem>
0114 <listitem><para>Ensure desired <link linkend="rule-evaluation">rule evaluation</link> using <guilabel>Move Up</guilabel> and <guilabel>Move Down</guilabel></para></listitem>
0115 </itemizedlist>
0116 <sect2 id="rule-evaluation"><title>Rule Evaluation</title> 
0117 <para>When an application starts (or the rules are modified), &kwin; evaluates the rules from the top of the list to the bottom.  For all rules which match a window, the collective set of attributes are applied to the window, then the window is displayed.
0118 </para>
0119 <para>Should two or more matching rules enable the same attribute, the setting in the <emphasis>first</emphasis> rule in the list is used.
0120 </para>
0121 <para><tip><para>You can tailor children windows for the application by placing the more restrictive rules first - see the <link linkend="application-on-all-desktops-and-handle-one-child-window-uniquely">Kopete and Kopete Chat Window</link> example.</para></tip>
0122 </para>
0123 </sect2>
0124 </sect1>
0125 <sect1 id="rule-editor"><title>Rule Editor</title> 
0126 <para>
0127 <screenshot>
0128 <screeninfo></screeninfo>
0129   <mediaobject>
0130     <imageobject>
0131       <imagedata fileref="kwin-rule-editor.png" format="PNG"/>
0132     </imageobject>
0133     <textobject>
0134       <phrase></phrase>
0135     </textobject>
0136   </mediaobject>
0137 </screenshot>
0138 </para>
0139 <para>The editor is composed of four tabs:
0140 </para>
0141 <orderedlist>
0142 <listitem><para><guilabel>Window matching</guilabel></para></listitem>
0143 <listitem><para><guilabel>Size &amp; Position</guilabel></para></listitem>
0144 <listitem><para><guilabel>Arrangement &amp; Access</guilabel></para></listitem>
0145 <listitem><para><guilabel>Appearance &amp; Fixes</guilabel></para></listitem>
0146 </orderedlist>
0147 <para>As the name implies, <guilabel>Window matching</guilabel> is used to specify criteria to match one or more windows.  The other three tabs are used to alter the attributes of the matching windows.
0148 </para>
0149 <para><tip><para>Panels can also be affected.</para></tip>
0150 </para>
0151 <sect2 id="window-matching"><title>Window Matching</title> 
0152 <para>Each window rule has user specified <link linkend="window-matching">Window Matching</link> criteria.  &kwin; uses the criteria to determine whether the rule is applicable for an application.
0153 </para>
0154 </sect2>
0155 <sect2 id="window-attributes"><title>Window Attributes</title> 
0156 <para>Along with Window Matching criteria, each window rule has a set of <link linkend="window-attributes">Window Attributes</link>.  The attributes override the corresponding application's settings and are applied before the window is displayed by &kwin;.
0157 </para>
0158 
0159 </sect2>
0160 </sect1>
0161 </chapter>
0162 <chapter id="window-matching0"><title>Window Matching</title> 
0163 <para>
0164 <screenshot>
0165 <screeninfo></screeninfo>
0166   <mediaobject>
0167     <imageobject>
0168       <imagedata fileref="kwin-rule-editor.png" format="PNG"/>
0169     </imageobject>
0170     <textobject>
0171       <phrase></phrase>
0172     </textobject>
0173   </mediaobject>
0174 </screenshot>
0175 </para>
0176 <para>The <guilabel>Window Matching</guilabel> tab is used to specify the criteria &kwin; uses to evaluate whether the rule is applicable for a given window.
0177 </para>
0178 <para>Zero (match any window) or more of the following may be specified:
0179 </para>
0180 <itemizedlist>
0181 <listitem><para><guilabel>Window class (application)</guilabel> - match the class.<itemizedlist>
0182 <listitem><para><guilabel>Match whole window class</guilabel> - include matching the secondary class.</para></listitem>
0183 </itemizedlist>
0184 </para></listitem>
0185 <listitem><para><guilabel>Window role</guilabel> - restrict the match to the function of the window (&eg; a <emphasis>main window</emphasis>, a <emphasis>chat window</emphasis>, &etc;)</para></listitem>
0186 <listitem><para><guilabel>Window types</guilabel> - restrict the match to the type of window:  <guilabel>Normal Window</guilabel>, <guilabel>Dialog Window</guilabel>, &etc;</para></listitem>
0187 <listitem><para><guilabel>Window title</guilabel> - restrict the match to the title of the window.</para></listitem>
0188 <listitem><para><guilabel>Machine (hostname)</guilabel> - restrict the match to the host name associated with the window.</para></listitem>
0189 </itemizedlist>
0190 <para><tip><para>While it's possible to manually enter the above information, the preferred method is to use the <guilabel>Detect Window Properties</guilabel> button.</para></tip>
0191 </para>
0192 <para>For each field, the following operators can be applied against the field value:
0193 </para>
0194 <itemizedlist>
0195 <listitem><para><guilabel>Unimportant</guilabel> - ignore the field.</para></listitem>
0196 <listitem><para><guilabel>Exact Match</guilabel></para></listitem>
0197 <listitem><para><guilabel>Substring Match</guilabel></para></listitem>
0198 </itemizedlist>
0199 <para><note><para>Both <guilabel>Exact Match</guilabel> and <guilabel>Substring Match</guilabel> implement case insensitive matching.  For example, <emphasis>AB</emphasis> matches the string <emphasis>AB</emphasis>, <emphasis>ab</emphasis>, <emphasis>Ab</emphasis> and <emphasis>aB</emphasis>.</para></note>
0200 </para>
0201 <itemizedlist>
0202 <listitem><para><guilabel>Regular Expression</guilabel> - Qt's regular expressions are implemented - see <ulink url="https://doc.qt.io/qt-5/qregexp.html">pattern matching using regular expressions</ulink>.</para></listitem>
0203 </itemizedlist>
0204 <sect1 id="detect-window-properties"><title>Detect Window Properties</title>
0205 <para>
0206 <screenshot>
0207 <screeninfo></screeninfo>
0208   <mediaobject>
0209     <imageobject>
0210       <imagedata fileref="kwin-detect-window.png" format="PNG"/>
0211     </imageobject>
0212     <textobject>
0213       <phrase></phrase>
0214     </textobject>
0215   </mediaobject>
0216 </screenshot>
0217 </para>
0218 <para>The <guilabel>Detect Window Properties</guilabel> function simplifies the process of entering the matching-criteria.
0219 </para>
0220 <orderedlist>
0221 <listitem><para>For the application you'd like to create a rule, start the application.</para></listitem>
0222 <listitem><para>Next, in the <guilabel>Window matching</guilabel> tab, set the number of seconds of delay before the <guilabel>Detect Window Properties</guilabel> function starts.  The default is zero seconds.</para></listitem>
0223 <listitem><para>Click on <guilabel>Detect Window Properties</guilabel> and</para></listitem>
0224 <listitem><para>When the mouse-cursor turns to cross-hairs, place it inside the application window (not the title bar) and left-click.</para></listitem>
0225 <listitem><para>A new window is presented with information about the selected window.  Select the desired fields:<itemizedlist>
0226 <listitem><para><guilabel>Secondary class name</guilabel> - some applications have a secondary class name.  This value can be used to restrict windows by this value.</para></listitem>
0227 <listitem><para><guilabel>Window role</guilabel></para></listitem>
0228 <listitem><para><guilabel>Window type</guilabel></para></listitem>
0229 <listitem><para><guilabel>Window title</guilabel></para></listitem>
0230 </itemizedlist>
0231 </para></listitem>
0232 </orderedlist>
0233 <para>Click the <guilabel>OK</guilabel> button to back-fill the <guilabel>Window Matching</guilabel> criteria.
0234 </para>
0235 <para>By using a combination of the information, a rule can apply to an entire application (by <guilabel>Class</guilabel>) or a to a specific window <guilabel>Type</guilabel> within the <guilabel>Class</guilabel> - say a <guilabel>Toolbar</guilabel>.
0236 </para>
0237 </sect1>
0238 </chapter>
0239 <chapter id="window-attributes1"><title>Window Attributes</title>
0240 <para>
0241 <screenshot>
0242 <screeninfo></screeninfo>
0243   <mediaobject>
0244     <imageobject>
0245       <imagedata fileref="kwin-window-attributes.png" format="PNG"/>
0246     </imageobject>
0247     <textobject>
0248       <phrase></phrase>
0249     </textobject>
0250   </mediaobject>
0251 </screenshot>
0252 </para>
0253 <para>The attributes which can be set are grouped by function in three tabs:
0254 </para>
0255 <orderedlist>
0256 <listitem><para><guilabel>Size &amp; Position</guilabel></para></listitem>
0257 <listitem><para><guilabel>Arrangement &amp; Access</guilabel></para></listitem>
0258 <listitem><para><guilabel>Appearance &amp; Fixes</guilabel></para></listitem>
0259 </orderedlist>
0260 <para>Each attribute has a set of parameters which determines its disposition.
0261 </para>
0262 <sect1 id="parameters"><title>Parameters</title>
0263 <para>Each attribute, minimally, accepts one of the following parameters.  Additional, attribute-specific arguments are listed within each <link linkend="attributes">attribute</link> definition.
0264 </para>
0265 <variablelist>
0266   <varlistentry><term><emphasis role="bold">Do Not Affect</emphasis></term>
0267     <listitem>
0268     <para>Ensure a subsequent rule, which matches the window, does not affect the attribute.</para>
0269      </listitem>
0270   </varlistentry>
0271   <varlistentry><term><emphasis role="bold">Apply Initially</emphasis></term>
0272     <listitem>
0273     <para>Start the window with the attribute and allow it to be changed at run-time.</para>
0274      </listitem>
0275   </varlistentry>
0276   <varlistentry><term><emphasis role="bold">Remember</emphasis></term>
0277     <listitem>
0278     <para>Use the attribute setting as defined in the rule and if changed at run-time, save and use the new value instead.</para>
0279      </listitem>
0280   </varlistentry>
0281   <varlistentry><term><emphasis role="bold">Force</emphasis></term>
0282     <listitem>
0283     <para>The setting cannot be changed at run-time.</para>
0284      </listitem>
0285   </varlistentry>
0286   <varlistentry><term><emphasis role="bold">Apply Now, Force Temporarily</emphasis></term>
0287     <listitem>
0288     <para>Apply/Force the setting once and unset the attribute.The difference between the two is at run-time, <guilabel>Apply Now</guilabel> allows the attribute to be changed and <guilabel>Force Temporarily</guilabel> prohibits it to be altered until all affected windows exit.</para>
0289      </listitem>
0290   </varlistentry>
0291 </variablelist>
0292 <para><warning><para>For <guilabel>Apply Now</guilabel>, if the rule has no other attributes set, the rule is deleted after evaluation whereas <guilabel>Force Temporarily</guilabel>, the rule is deleted after the last affected window terminates.</para></warning>
0293 </para>
0294 </sect1>
0295 <sect1 id="attributes"><title>Attributes</title>
0296 <para><tip><para>The <guilabel>Detect Window Properties</guilabel> button back-fills attribute-specific values - for more information see <link linkend="window-matching">Window Matching</link>.  For example the height and width values of the <guilabel>Size</guilabel> attribute is set to the height and width of the detected window.</para></tip>
0297 </para>
0298 <para><tip><para><guilabel>Yes/No</guilabel> arguments are used to toggle on or off attributes.  Leniency with grammar helps one understand how a setting will be processed.  <inlinemediaobject> <imageobject> <imagedata fileref="Face-smile.png" format="PNG"/> </imageobject> </inlinemediaobject>  For example, the attribute <guilabel>Skip taskbar</guilabel>, when set to <guilabel>No</guilabel> means do not skip the taskbar.  In other words, show the window in the taskbar.  <inlinemediaobject> <imageobject> <imagedata fileref="Face-smile.png" format="PNG"/> </imageobject> </inlinemediaobject></para></tip>
0299 </para>
0300 <sect2 id="size--position"><title>Size &amp; Position</title>
0301 <variablelist>
0302   <varlistentry><term><emphasis role="bold">Position</emphasis></term>
0303     <listitem>
0304     <para>Position the window's upper left corner at the specified x,y coordinate.</para>
0305      </listitem>
0306   </varlistentry>
0307 </variablelist>
0308 <para><tip><para>&kwin;'s origin, (0,0), is the upper left of the desktop.</para></tip>
0309 </para>
0310 <variablelist>
0311   <varlistentry><term><emphasis role="bold">Size</emphasis></term>
0312     <listitem>
0313     <para>The width and height of the window.</para>
0314      </listitem>
0315   </varlistentry>
0316   <varlistentry><term><emphasis role="bold">Maximized horizontally, Maximized vertically</emphasis></term>
0317     <listitem>
0318     <para>These attributes are used to toggle the maximum horizontal/minimum horizontal window attribute.</para>
0319      </listitem>
0320   </varlistentry>
0321   <varlistentry><term><emphasis role="bold">Desktop, Activity, Screen</emphasis></term>
0322     <listitem>
0323     <para>Place the window on the specified <emphasis>(Virtual) Desktop</emphasis>, <emphasis>Activity</emphasis> or <emphasis>Screen</emphasis>.  Use <guilabel>All Desktops</guilabel> to place the window on all <emphasis>Virtual Desktops</emphasis>.</para>
0324      </listitem>
0325   </varlistentry>
0326   <varlistentry><term><emphasis role="bold">Fullscreen, Minimized, Shaded</emphasis></term>
0327     <listitem>
0328     <para>Toggle the Fullscreen, Minimize and Shading window attribute.  For example, a window can be started Minimized or if it is started Minimized, it can be forced to not.</para>
0329      </listitem>
0330   </varlistentry>
0331 </variablelist>
0332 <para><tip><para>Maximized attribute is emulated by using both <guilabel>Maximized horizontally</guilabel> and <guilabel>Maximized vertically</guilabel> or <guilabel>Initial placement</guilabel> with the <guilabel>Maximizing</guilabel> argument.</para></tip>
0333 </para>
0334 <variablelist>
0335   <varlistentry><term><emphasis role="bold">Initial placement</emphasis></term>
0336     <listitem>
0337     <para>Override the global window placement strategy with one of the following:</para>
0338 <itemizedlist>
0339 <listitem><para><guilabel>Default</guilabel> - use the global window placement strategy.</para></listitem>
0340 <listitem><para><guilabel>No Placement</guilabel> - top-left corner.</para></listitem>
0341 <listitem><para><guilabel>Minimal Overlapping</guilabel> - place where no other window exists.</para></listitem>
0342 <listitem><para><guilabel>Maximized</guilabel> - start the window maximized.</para></listitem>
0343 <listitem><para><guilabel>Centered</guilabel> - center of the desktop.</para></listitem>
0344 <listitem><para><guilabel>Random</guilabel></para></listitem>
0345 <listitem><para><guilabel>In Top-Left Corner</guilabel></para></listitem>
0346 <listitem><para><guilabel>Under Mouse</guilabel></para></listitem>
0347 <listitem><para><guilabel>On Main Window</guilabel> - restrict placement of a child window to the boundaries of the parent window.</para></listitem>
0348 </itemizedlist>
0349 
0350      </listitem>
0351   </varlistentry>
0352   <varlistentry><term><emphasis role="bold">Ignore requested geometry</emphasis></term>
0353     <listitem>
0354     <para>Toggle whether to accept or ignore the window's requested geometry position.  To avoid conflicts between the default placement strategy and the window's request, the placement strategy is ignored when the window's request is accepted.</para>
0355      </listitem>
0356   </varlistentry>
0357   <varlistentry><term><emphasis role="bold">Minimum size, Maximum size</emphasis></term>
0358     <listitem>
0359     <para>The minimum and maximum size allowed for the window.</para>
0360      </listitem>
0361   </varlistentry>
0362   <varlistentry><term><emphasis role="bold">Obey geometry restrictions</emphasis></term>
0363     <listitem>
0364     <para>Toggle whether to adhere to the window's requested aspect ratio or <emphasis>base increment</emphasis>.In order to understand this attribute, some background is required.  Briefly, windows must request from the Window Manager, a base increment:  the minimum number of <emphasis>height</emphasis> X <emphasis>width</emphasis> pixels per re-size request.  Typically, it's 1x1.  Other windows though, for example terminal emulators or editors, use fixed-fonts and request their base-increment according to the size of one character.</para>
0365      </listitem>
0366   </varlistentry>
0367 </variablelist>
0368 </sect2>
0369 <sect2 id="arrangement--access"><title>Arrangement &amp; Access</title>
0370 <variablelist>
0371   <varlistentry><term><emphasis role="bold">Keep above, Keep below</emphasis></term>
0372     <listitem>
0373     <para>Toggle whether to keep the window above/below all others.</para>
0374      </listitem>
0375   </varlistentry>
0376   <varlistentry><term><emphasis role="bold">Autogroup with identical</emphasis></term>
0377     <listitem>
0378     <para>Toggle the grouping (commonly known as <emphasis>tabbing</emphasis>) of windows.</para>
0379      </listitem>
0380   </varlistentry>
0381   <varlistentry><term><emphasis role="bold">Autogroup in foreground</emphasis></term>
0382     <listitem>
0383     <para>Toggle whether to make the window active when it is added to the current Autogroup.</para>
0384      </listitem>
0385   </varlistentry>
0386   <varlistentry><term><emphasis role="bold">Autogroup by ID</emphasis></term>
0387     <listitem>
0388     <para>Create a group via a user-defined ID.  More than one rule can share the same ID to allow for seemingly unrelated windows to be grouped.</para>
0389      </listitem>
0390   </varlistentry>
0391 
0392   <varlistentry><term><emphasis role="bold">Skip taskbar</emphasis></term>
0393     <listitem>
0394     <para>Toggle whether to display the window in the taskbar.</para>
0395      </listitem>
0396   </varlistentry>
0397   <varlistentry><term><emphasis role="bold">Skip pager</emphasis></term>
0398     <listitem>
0399     <para>Toggle whether to display the window in pager.</para>
0400      </listitem>
0401   </varlistentry>
0402     </variablelist>
0403 <para>
0404 <screenshot>
0405 <screeninfo></screeninfo>
0406   <mediaobject>
0407     <imageobject>
0408       <imagedata fileref="pager-4-desktops.png" format="PNG"/>
0409     </imageobject>
0410     <textobject>
0411       <phrase></phrase>
0412     </textobject>
0413   </mediaobject>
0414 </screenshot>
0415 </para>
0416 <variablelist>
0417   <varlistentry><term><emphasis role="bold">Skip switcher</emphasis></term>
0418     <listitem>
0419     <para>Toggle whether to display the window in the <guilabel>ALT+TAB</guilabel> list.</para>
0420      </listitem>
0421   </varlistentry>
0422   <varlistentry><term><emphasis role="bold">Shortcut</emphasis></term>
0423     <listitem>
0424     <para>Assign a shortcut to the window.  When <guilabel>Edit...</guilabel> is clicked, additional instructions are presented.</para>
0425      </listitem>
0426   </varlistentry>
0427 </variablelist>
0428 </sect2>
0429 <sect2 id="appearance--fixes"><title>Appearance &amp; Fixes</title>
0430 <variablelist>
0431   <varlistentry><term><emphasis role="bold">No titlebar and frame</emphasis></term>
0432     <listitem>
0433     <para>Toggle whether to display the titlebar and frame around the window.</para>
0434      </listitem>
0435   </varlistentry>
0436   <varlistentry><term><emphasis role="bold">Titlebar color scheme</emphasis></term>
0437     <listitem>
0438     <para>Select a color scheme for the titlebar of the window.</para>
0439      </listitem>
0440   </varlistentry>
0441   <varlistentry><term><emphasis role="bold">Active/Inactive opacity</emphasis></term>
0442     <listitem>
0443     <para>When the window is active/inactive, set its opacity to the percentage specified.</para>
0444      </listitem>
0445   </varlistentry>
0446 </variablelist>
0447 <para><tip><para><guilabel>Active/Inactive opacity</guilabel> can only be affected when <guilabel>Desktop Effects</guilabel> are enabled.</para></tip>
0448 </para>
0449 <variablelist>
0450   <varlistentry><term><emphasis role="bold">Focus stealing prevention</emphasis></term>
0451     <listitem>
0452     <para>When a window wants focus, control on a scale (from <guilabel>None</guilabel> to <guilabel>Extreme</guilabel>) whether to honor the request and place above all other windows, or ignore its request (potentially leaving the window behind other windows):</para>
0453 <itemizedlist>
0454 <listitem><para>None - Always grant focus to the window.</para></listitem>
0455 <listitem><para>Low</para></listitem>
0456 <listitem><para>Normal</para></listitem>
0457 <listitem><para>High</para></listitem>
0458 <listitem><para>Extreme - The window's focus request is denied.  Focus is only granted by explicitly requesting via the  mousing.</para></listitem>
0459 </itemizedlist>
0460 
0461      </listitem>
0462   </varlistentry>
0463 </variablelist>
0464 <para><tip><para>See <guilabel>Accept focus</guilabel> to make a window read-only - not accept any keyboard input.</para></tip>
0465 </para>
0466 <variablelist>
0467   <varlistentry><term><emphasis role="bold">Accept focus</emphasis></term>
0468     <listitem>
0469     <para>Toggle whether the window accepts keyboard input.  Make the window read-only.</para>
0470      </listitem>
0471   </varlistentry>
0472   <varlistentry><term><emphasis role="bold">Ignore global shortcuts</emphasis></term>
0473     <listitem>
0474     <para>Toggle whether to ignore global shortcuts (as defined by <menuchoice><guimenu>System Settings</guimenu><guisubmenu>Shortcuts and Gestures</guisubmenu><guimenuitem>Global Shortcuts</guimenuitem></menuchoice> or by running <varname>kcmshell5 keys</varname> in <guilabel>konsole</guilabel>) while the window is active.</para>
0475      </listitem>
0476   </varlistentry>
0477   <varlistentry><term><emphasis role="bold">Closeable</emphasis></term>
0478     <listitem>
0479     <para>Toggle whether to display the <guilabel>Close</guilabel> button on the title bar.</para>
0480      </listitem>
0481   </varlistentry>
0482 </variablelist>
0483 <para><tip><para>A terminal window may still be closed by the end user by ending the shell session however using <guilabel>Accept focus</guilabel> to disable keyboard input will make it more difficult to close the window.</para></tip>
0484 </para>
0485 <variablelist>
0486   <varlistentry><term><emphasis role="bold">Window type</emphasis></term>
0487     <listitem>
0488     <para>Change the window to another type and inherit the characteristics of that window:</para>
0489 <itemizedlist>
0490 <listitem><para>Normal Window</para></listitem>
0491 <listitem><para>Dialog Window</para></listitem>
0492 <listitem><para>Utility Window</para></listitem>
0493 <listitem><para>Dock (panel)</para></listitem>
0494 <listitem><para>Toolbar</para></listitem>
0495 <listitem><para>Torn-Off Menu</para></listitem>
0496 <listitem><para>Splash Screen</para></listitem>
0497 <listitem><para>Desktop</para></listitem>
0498 <listitem><para>Standalone Menubar</para></listitem>
0499 <listitem><para>On Screen Display</para></listitem>
0500 </itemizedlist>
0501 
0502      </listitem>
0503   </varlistentry>
0504 </variablelist>
0505 <para><warning><para>Use with care because unwanted results may be introduced.  For example, a <guilabel>Splash Screen</guilabel> is a automatically closed by &kwin; when clicked.</para></warning>
0506 </para>
0507 <variablelist>
0508   <varlistentry><term><emphasis role="bold">Block compositing</emphasis></term>
0509     <listitem>
0510     <para>Toggle whether to disable compositing while the window <emphasis>exists</emphasis>.  If compositing is enabled and the rule specifies to disable compositing, while <emphasis>any</emphasis> matching window exists, compositing will be disabled.  Compositing is re-enabled when the last matching window terminates.</para>
0511      </listitem>
0512   </varlistentry>
0513 </variablelist>
0514 </sect2>
0515 </sect1>
0516 </chapter>
0517 <chapter id="examples"><title>Examples</title>
0518 <para><note><para>The first example details all the necessary steps to create the rules.  In order to keep this page a manageable size, subsequent examples only list steps specific to the example.</para></note>
0519 </para>
0520 <para><note><para>The <guilabel>Pager</guilabel> attribute refers to the <guilabel>Virtual Desktop Manager</guilabel>:
0521 <screenshot>
0522 <screeninfo></screeninfo>
0523   <mediaobject>
0524     <imageobject>
0525       <imagedata fileref="pager-4-desktops.png" format="PNG"/>
0526     </imageobject>
0527     <textobject>
0528       <phrase></phrase>
0529     </textobject>
0530   </mediaobject>
0531 </screenshot></para></note>
0532 </para>
0533 <sect1 id="pin-a-window-to-a-desktop-and-set-other-attributes"><title>Pin a Window to a Desktop and set other Attributes</title>
0534 <para>Pin &akregator; to <emphasis>Virtual Desktop 2</emphasis>.  Additionally, start the application with a preferred size and position.  For each attribute, use the <guilabel>Apply Initially</guilabel> <link linkend="parameters">parameter</link> so it can be overridden at run-time.
0535 </para>
0536 <para>The &kwin; rule is created as follows:
0537 </para>
0538 <orderedlist>
0539 <listitem><para>Start &akregator; on <emphasis>desktop two</emphasis>, size and position it to suit:
0540 <screenshot>
0541 <screeninfo></screeninfo>
0542   <mediaobject>
0543     <imageobject>
0544       <imagedata fileref="akregator-fav.png" format="PNG"/>
0545     </imageobject>
0546     <textobject>
0547       <phrase></phrase>
0548     </textobject>
0549   </mediaobject>
0550 </screenshot></para></listitem>
0551 <listitem><para>Right-click on the titlebar and select <menuchoice><guimenu>More Actions</guimenu><guimenuitem>Window Manager Settings...</guimenuitem></menuchoice>:
0552 <screenshot>
0553 <screeninfo></screeninfo>
0554   <mediaobject>
0555     <imageobject>
0556       <imagedata fileref="config-win-behavior.png" format="PNG"/>
0557     </imageobject>
0558     <textobject>
0559       <phrase></phrase>
0560     </textobject>
0561   </mediaobject>
0562 </screenshot></para></listitem>
0563 <listitem><para>Select the <guilabel>Window Rules</guilabel> in the left column and click on <guilabel>New...</guilabel>:
0564 <screenshot>
0565 <screeninfo></screeninfo>
0566   <mediaobject>
0567     <imageobject>
0568       <imagedata fileref="kwin-rules-main.png" format="PNG"/>
0569     </imageobject>
0570     <textobject>
0571       <phrase></phrase>
0572     </textobject>
0573   </mediaobject>
0574 </screenshot></para></listitem>
0575 <listitem><para>The <guilabel>Edit Window-Specific Settings</guilabel> window is displayed.  <guilabel>Window matching</guilabel> is the default tab:
0576 <screenshot>
0577 <screeninfo></screeninfo>
0578   <mediaobject>
0579     <imageobject>
0580       <imagedata fileref="window-matching-init.png" format="PNG"/>
0581     </imageobject>
0582     <textobject>
0583       <phrase></phrase>
0584     </textobject>
0585   </mediaobject>
0586 </screenshot></para></listitem>
0587 <listitem><para>Click <guilabel>Detect Window Properties</guilabel> with <guilabel>0s delay</guilabel> the cursor immediately turns into cross-hairs.  Click (anywhere) inside the &akregator; window (but not the title bar).  The window criteria are presented.  Match only by primary class name so leave the check boxes unchecked - for additional information see <link linkend="window-matching">window matching</link>:
0588 <screenshot>
0589 <screeninfo></screeninfo>
0590   <mediaobject>
0591     <imageobject>
0592       <imagedata fileref="akgregator-info.png" format="PNG"/>
0593     </imageobject>
0594     <textobject>
0595       <phrase></phrase>
0596     </textobject>
0597   </mediaobject>
0598 </screenshot></para></listitem>
0599 <listitem><para>Clicking <guilabel>OK</guilabel> the previous window back-fills the results in the <guilabel>Window Matching</guilabel> tab.  Enter a meaningful text in the <guilabel>Description</guilabel> field (which is displayed in the <guilabel>KWin Rule</guilabel> window):
0600 <screenshot>
0601 <screeninfo></screeninfo>
0602   <mediaobject>
0603     <imageobject>
0604       <imagedata fileref="window-matching-ready-akregator.png" format="PNG"/>
0605     </imageobject>
0606     <textobject>
0607       <phrase></phrase>
0608     </textobject>
0609   </mediaobject>
0610 </screenshot></para></listitem>
0611 <listitem><para>Enable the window attributes: <guilabel>Position</guilabel>, <guilabel>Size</guilabel> and <guilabel>Desktop</guilabel>.  The initial values are set by <guilabel>Detect Window Properties</guilabel> and can be overridden:
0612 <screenshot>
0613 <screeninfo></screeninfo>
0614   <mediaobject>
0615     <imageobject>
0616       <imagedata fileref="akregator-attributes.png" format="PNG"/>
0617     </imageobject>
0618     <textobject>
0619       <phrase></phrase>
0620     </textobject>
0621   </mediaobject>
0622 </screenshot></para></listitem>
0623 <listitem><para>Clicking <guilabel>OK</guilabel> in the previous window returns to the main <guilabel>KWin Rules</guilabel>.  The new rule with its description is listed:
0624 <screenshot>
0625 <screeninfo></screeninfo>
0626   <mediaobject>
0627     <imageobject>
0628       <imagedata fileref="kwin-rules-main-n-akregator.png" format="PNG"/>
0629     </imageobject>
0630     <textobject>
0631       <phrase></phrase>
0632     </textobject>
0633   </mediaobject>
0634 </screenshot></para></listitem>
0635 <listitem><para>Click <guilabel>OK</guilabel> to close the window.</para></listitem>
0636 <listitem><para>Done.</para></listitem>
0637 </orderedlist>
0638 </sect1>
0639 <sect1 id="application-on-all-desktops-and-handle-one-child-window-uniquely"><title>Application on all Desktops and Handle One Child Window Uniquely</title>
0640 <para>Except for conversation windows, display &kopete; and its children windows on all desktops and skip the systray and pager.  For children conversation windows, treat them as the parent window except show them in systray.
0641 </para>
0642 <para>For each attribute, use the <guilabel>Force</guilabel> <link linkend="parameters">parameter</link> so it can not be overridden.
0643 </para>
0644 <para>In order to implement the above, two rules need to be created:
0645 </para>
0646 <orderedlist>
0647 <listitem><para>A rule for <guilabel>Kopete Chat</guilabel> and</para></listitem>
0648 <listitem><para>A rule for &kopete;</para></listitem>
0649 </orderedlist>
0650 <para>The <guilabel>Kopete Chat</guilabel> rule's matching-criteria is more restrictive than the <emphasis>Kopete</emphasis> rule as it needs to match a specific Window Role:  the chat window.  Due to <link linkend="rule-evaluation">rule evaluation</link> processing, the <guilabel>Kopete Chat</guilabel> rule must precede the &kopete; rule in the <link linkend="kopete-kwin-rule-list">KWin Rule list for Kopete</link>.
0651 </para>
0652 <sect2 id="kopete-chat-rule"><title>Kopete Chat Rule</title>
0653 <para>Assuming a <guilabel>Kopete Chat</guilabel> window is open:
0654 </para>
0655 <orderedlist>
0656 <listitem><para>Use <guilabel>Detect Window Properties</guilabel> and select the <guilabel>Kopete  Chat</guilabel> window.  Check the <guilabel>Window role</guilabel> box to restrict the criteria to chat windows - for additional information see <link linkend="window-matching">window matching</link>:
0657 <screenshot>
0658 <screeninfo></screeninfo>
0659   <mediaobject>
0660     <imageobject>
0661       <imagedata fileref="kopete-chat-info.png" format="PNG"/>
0662     </imageobject>
0663     <textobject>
0664       <phrase></phrase>
0665     </textobject>
0666   </mediaobject>
0667 </screenshot></para></listitem>
0668 <listitem><para>Clicking <guilabel>OK</guilabel> in the previous window back-fills the results in the <guilabel>Window Matching</guilabel> tab.  Enter a meaningful text in the <guilabel>Description</guilabel> box:
0669 <screenshot>
0670 <screeninfo></screeninfo>
0671   <mediaobject>
0672     <imageobject>
0673       <imagedata fileref="window-matching-kopete-chat.png" format="PNG"/>
0674     </imageobject>
0675     <textobject>
0676       <phrase></phrase>
0677     </textobject>
0678   </mediaobject>
0679 </screenshot></para></listitem>
0680 <listitem><para>Enable the following attributes:
0681 <screenshot>
0682 <screeninfo></screeninfo>
0683   <mediaobject>
0684     <imageobject>
0685       <imagedata fileref="kopete-chat-attribute.png" format="PNG"/>
0686     </imageobject>
0687     <textobject>
0688       <phrase></phrase>
0689     </textobject>
0690   </mediaobject>
0691 </screenshot></para></listitem>
0692 <listitem><para>Click through to complete entry of the rule.</para></listitem>
0693 </orderedlist>
0694 <para><note><para>The <guilabel>Skip taskbar</guilabel> attribute is set to <guilabel>No</guilabel> to display the window in the taskbar which loosely translates to:  <emphasis>no</emphasis> <emphasis>do not</emphasis> <emphasis>skip taskbar</emphasis> <inlinemediaobject> <imageobject> <imagedata fileref="Face-smile.png" format="PNG"/> </imageobject> </inlinemediaobject>.</para></note>
0695 </para>
0696 </sect2>
0697 <sect2 id="kopete-rule"><title>Kopete Rule</title>
0698 <para>Assuming &kopete; is open:
0699 </para>
0700 <orderedlist>
0701 <listitem><para>Use <guilabel>Detect Window Properties</guilabel> and select the &kopete; window.  Match only by primary class name so leave the check boxes unchecked - for additional information see <link linkend="window-matching">window matching</link>:
0702 <screenshot>
0703 <screeninfo></screeninfo>
0704   <mediaobject>
0705     <imageobject>
0706       <imagedata fileref="kopete-info.png" format="PNG"/>
0707     </imageobject>
0708     <textobject>
0709       <phrase></phrase>
0710     </textobject>
0711   </mediaobject>
0712 </screenshot></para></listitem>
0713 <listitem><para>Clicking <guilabel>OK</guilabel> in the previous window back-fills the results in the <guilabel>Window Matching</guilabel> tab.  Enter a meaningful text in the <guilabel>Description</guilabel> box:
0714 <screenshot>
0715 <screeninfo></screeninfo>
0716   <mediaobject>
0717     <imageobject>
0718       <imagedata fileref="window-matching-kopete.png" format="PNG"/>
0719     </imageobject>
0720     <textobject>
0721       <phrase></phrase>
0722     </textobject>
0723   </mediaobject>
0724 </screenshot></para></listitem>
0725 <listitem><para>Enable the following attributes:
0726 <screenshot>
0727 <screeninfo></screeninfo>
0728   <mediaobject>
0729     <imageobject>
0730       <imagedata fileref="kopete-attribute-2.png" format="PNG"/>
0731     </imageobject>
0732     <textobject>
0733       <phrase></phrase>
0734     </textobject>
0735   </mediaobject>
0736 </screenshot></para></listitem>
0737 <listitem><para>Click through to complete entry of the rule.</para></listitem>
0738 </orderedlist>
0739 </sect2>
0740 <sect2 id="kopete-kwin-rule-list"><title>Kopete KWin Rule List</title>
0741 <para>As mentioned, due to <link linkend="rule-evaluation">rule evaluation</link> processing, the <guilabel>Kopete Chat</guilabel> rule must precede the &kopete; rule:
0742 <screenshot>
0743 <screeninfo></screeninfo>
0744   <mediaobject>
0745     <imageobject>
0746       <imagedata fileref="kwin-kopete-rules.png" format="PNG"/>
0747     </imageobject>
0748     <textobject>
0749       <phrase></phrase>
0750     </textobject>
0751   </mediaobject>
0752 </screenshot>
0753 </para>
0754 </sect2>
0755 </sect1>
0756 <sect1 id="suppress-a-window-from-showing-on-pager"><title>Suppress a Window from showing on Pager</title>
0757 <para><guilabel>KNotes</guilabel> currently does not allow for its notes to skip the pager however a rule easily solves this shortcoming.
0758 </para>
0759 <para>Assuming a <emphasis>sticky note</emphasis>' window is available:
0760 </para>
0761 <orderedlist>
0762 <listitem><para>Use <guilabel>Detect Window Properties</guilabel> and select any <emphasis>sticky note</emphasis> window.  Match only by primary class name so leave the check boxes unchecked - for additional information see <link linkend="window-matching">window matching</link>:
0763 <screenshot>
0764 <screeninfo></screeninfo>
0765   <mediaobject>
0766     <imageobject>
0767       <imagedata fileref="knotes-info.png" format="PNG"/>
0768     </imageobject>
0769     <textobject>
0770       <phrase></phrase>
0771     </textobject>
0772   </mediaobject>
0773 </screenshot></para></listitem>
0774 <listitem><para>Clicking <guilabel>OK</guilabel> in the previous window back-fills the results in the <guilabel>Window Matching</guilabel> tab.  Enter a meaningful text in the <guilabel>Description</guilabel> box:
0775 <screenshot>
0776 <screeninfo></screeninfo>
0777   <mediaobject>
0778     <imageobject>
0779       <imagedata fileref="window-matching-knotes.png" format="PNG"/>
0780     </imageobject>
0781     <textobject>
0782       <phrase></phrase>
0783     </textobject>
0784   </mediaobject>
0785 </screenshot></para></listitem>
0786 <listitem><para>Enable the <guilabel>Skip Pager</guilabel> attribute with the <guilabel>Force</guilabel> <link linkend="parameters">parameter</link>:
0787 <screenshot>
0788 <screeninfo></screeninfo>
0789   <mediaobject>
0790     <imageobject>
0791       <imagedata fileref="knotes-attribute.png" format="PNG"/>
0792     </imageobject>
0793     <textobject>
0794       <phrase></phrase>
0795     </textobject>
0796   </mediaobject>
0797 </screenshot></para></listitem>
0798 <listitem><para>Click through to complete entry of the rule.</para></listitem>
0799 </orderedlist>
0800 </sect1>
0801 <sect1 id="force-a-window-to-the-top"><title>Force a Window to the Top</title>
0802 <para>To pop an active window to the top, set its <guilabel>Focus stealing prevention</guilabel> attribute to <guilabel>None</guilabel>, typically, in conjunction with the <guilabel>Force</guilabel> <link linkend="parameters">parameter</link>:
0803 <screenshot>
0804 <screeninfo></screeninfo>
0805   <mediaobject>
0806     <imageobject>
0807       <imagedata fileref="focus-stealing-pop2top-attribute.png" format="PNG"/>
0808     </imageobject>
0809     <textobject>
0810       <phrase></phrase>
0811     </textobject>
0812   </mediaobject>
0813 </screenshot>
0814 </para>
0815 </sect1>
0816 <sect1 id="multiple-rules-per-application"><title>Multiple Rules per Application</title>
0817 <para><application>Thunderbird</application> has several different child windows.  This example:
0818 </para>
0819 <itemizedlist>
0820 <listitem><para>Pin <application>Thunderbird</application>'s main window on <emphasis>Virtual Desktop 1</emphasis> with a specific size and location on the desktop.</para></listitem>
0821 <listitem><para>Allow the <application>Thunderbird</application> composer window to reside on any desktop and when activated, force focus and pop it to the top of all windows.</para></listitem>
0822 <listitem><para>Pop the <application>Thunderbird</application> reminder to the top and do not give it focus so it isn't inadvertently dismissed.</para></listitem>
0823 </itemizedlist>
0824 <para>Each rule's matching criteria is sufficiently restrictive so their order within the main &kwin; window is not important to affect <link linkend="rule-evaluation">rule evaluation</link>.
0825 </para>
0826 <sect2 id="thunderbird---main"><title>Thunderbird - Main</title>
0827 <para>Assuming the <guilabel>Thunderbird Main</guilabel> window is open, sized and position to suit:
0828 </para>
0829 <orderedlist>
0830 <listitem><para>Use <guilabel>Detect Window Properties</guilabel> and select the <guilabel>Thunderbird Main</guilabel> window.  Check the <guilabel>Window role</guilabel> box to restrict the criteria to the main window - for additional information see <link linkend="window-matching">window matching</link>:
0831 <screenshot>
0832 <screeninfo></screeninfo>
0833   <mediaobject>
0834     <imageobject>
0835       <imagedata fileref="tbird-main-info.png" format="PNG"/>
0836     </imageobject>
0837     <textobject>
0838       <phrase></phrase>
0839     </textobject>
0840   </mediaobject>
0841 </screenshot></para></listitem>
0842 <listitem><para>Clicking <guilabel>OK</guilabel> in the previous window back-fills the results in the <guilabel>Window Matching</guilabel> tab.  Enter a meaningful text in the <guilabel>Description</guilabel> box:
0843 <screenshot>
0844 <screeninfo></screeninfo>
0845   <mediaobject>
0846     <imageobject>
0847       <imagedata fileref="window-matching-tbird-main.png" format="PNG"/>
0848     </imageobject>
0849     <textobject>
0850       <phrase></phrase>
0851     </textobject>
0852   </mediaobject>
0853 </screenshot></para></listitem>
0854 <listitem><para>Enable the following attributes:
0855 <screenshot>
0856 <screeninfo></screeninfo>
0857   <mediaobject>
0858     <imageobject>
0859       <imagedata fileref="tbird-main-attribute.png" format="PNG"/>
0860     </imageobject>
0861     <textobject>
0862       <phrase></phrase>
0863     </textobject>
0864   </mediaobject>
0865 </screenshot></para></listitem>
0866 <listitem><para>Click through to complete entry of the rule.</para></listitem>
0867 </orderedlist>
0868 </sect2>
0869 <sect2 id="thunderbird---composer"><title>Thunderbird - Composer</title>
0870 <para>Assuming a <guilabel>Thunderbird Composer</guilabel> window is open:
0871 </para>
0872 <orderedlist>
0873 <listitem><para>Use <guilabel>Detect Window Properties</guilabel> and select the <guilabel>Thunderbird Compose</guilabel> window.  Check the <guilabel>Window role</guilabel> and <guilabel>Window type</guilabel> boxes to restrict the criteria to composition windows - for additional information see <link linkend="window-matching">window matching</link>:
0874 <screenshot>
0875 <screeninfo></screeninfo>
0876   <mediaobject>
0877     <imageobject>
0878       <imagedata fileref="tbird-compose-info.png" format="PNG"/>
0879     </imageobject>
0880     <textobject>
0881       <phrase></phrase>
0882     </textobject>
0883   </mediaobject>
0884 </screenshot></para></listitem>
0885 <listitem><para>Clicking <guilabel>OK</guilabel> in the previous window back-fills the results in the <guilabel>Window Matching</guilabel> tab.  Enter a meaningful text in the <guilabel>Description</guilabel> box:
0886 <screenshot>
0887 <screeninfo></screeninfo>
0888   <mediaobject>
0889     <imageobject>
0890       <imagedata fileref="window-matching-tbird-compose.png" format="PNG"/>
0891     </imageobject>
0892     <textobject>
0893       <phrase></phrase>
0894     </textobject>
0895   </mediaobject>
0896 </screenshot></para></listitem>
0897 <listitem><para>Enable the following attributes:
0898 <screenshot>
0899 <screeninfo></screeninfo>
0900   <mediaobject>
0901     <imageobject>
0902       <imagedata fileref="tbird-compose-attribute.png" format="PNG"/>
0903     </imageobject>
0904     <textobject>
0905       <phrase></phrase>
0906     </textobject>
0907   </mediaobject>
0908 </screenshot></para></listitem>
0909 <listitem><para>Click through to complete entry of the rule.</para></listitem>
0910 </orderedlist>
0911 </sect2>
0912 <sect2 id="thunderbird---reminder"><title>Thunderbird - Reminder</title>
0913 <para>Assuming a <guilabel>Thunderbird Reminder</guilabel> window is open:
0914 </para>
0915 <orderedlist>
0916 <listitem><para>Use <guilabel>Detect Window Properties</guilabel> and select the <guilabel>Thunderbird Reminder</guilabel> window.  Check the <guilabel>Secondary class name</guilabel> and <guilabel>Window Type</guilabel> boxes to restrict the criteria to reminder windows - for additional information see <link linkend="window-matching">window matching</link>:
0917 <screenshot>
0918 <screeninfo></screeninfo>
0919   <mediaobject>
0920     <imageobject>
0921       <imagedata fileref="tbird-reminder-info.png" format="PNG"/>
0922     </imageobject>
0923     <textobject>
0924       <phrase></phrase>
0925     </textobject>
0926   </mediaobject>
0927 </screenshot></para></listitem>
0928 <listitem><para>Clicking <guilabel>OK</guilabel> in the previous window back-fills the results in the <guilabel>Window Matching</guilabel> tab.  Enter a meaningful text in the <guilabel>Description</guilabel> box:
0929 <screenshot>
0930 <screeninfo></screeninfo>
0931   <mediaobject>
0932     <imageobject>
0933       <imagedata fileref="window-matching-tbird-reminder.png" format="PNG"/>
0934     </imageobject>
0935     <textobject>
0936       <phrase></phrase>
0937     </textobject>
0938   </mediaobject>
0939 </screenshot></para></listitem>
0940 <listitem><para>Enable the following attributes:
0941 <screenshot>
0942 <screeninfo></screeninfo>
0943   <mediaobject>
0944     <imageobject>
0945       <imagedata fileref="tbird-reminder-attribute-2.png" format="PNG"/>
0946     </imageobject>
0947     <textobject>
0948       <phrase></phrase>
0949     </textobject>
0950   </mediaobject>
0951 </screenshot></para></listitem>
0952 <listitem><para>Click through to complete entry of the rule.</para></listitem>
0953 </orderedlist>
0954 
0955 </sect2>
0956 </sect1>
0957 </chapter>
0958 <chapter id="application-workarounds"><title>Application Workarounds</title>
0959 <para>Below are Workarounds for misbehaving applications.
0960 </para>
0961 <para><tip><para>If you are unfamiliar with creating &kwin; Rules, see this <link linkend="pin-a-window-to-a-desktop-and-set-other-attributes">detailed example</link> to base your new rule.</para></tip>
0962 </para>
0963 <sect1 id="full-screen-re-size-error"><title>Full-screen Re-size Error</title>
0964 <para>&Emacs; and <guilabel>gVim</guilabel>, when maximized (full-screen mode) and under certain conditions may encounter window re-sizing issues - see <ulink url="https://bugs.kde.org/show_bug.cgi?id=252314">Emacs window resizes ...</ulink>  A &kwin; Rule will work-around the issue.
0965 </para>
0966 <para>Assuming an &Emacs; window is open:
0967 </para>
0968 <orderedlist>
0969 <listitem><para>Use <guilabel>Detect Window Properties</guilabel> and select the &Emacs; window.  Match only by <guilabel>primary class name</guilabel> so leave the check boxes unchecked - for additional information see <link linkend="window-matching">window matching</link>
0970 <screenshot>
0971 <screeninfo></screeninfo>
0972   <mediaobject>
0973     <imageobject>
0974       <imagedata fileref="emacs-info.png" format="PNG"/>
0975     </imageobject>
0976     <textobject>
0977       <phrase></phrase>
0978     </textobject>
0979   </mediaobject>
0980 </screenshot></para></listitem>
0981 <listitem><para>Clicking <guilabel>OK</guilabel> in the previous window back-fills the results in the <guilabel>Window Matching</guilabel> tab.  Enter a meaningful text in the <guilabel>Description</guilabel> text box:
0982 <screenshot>
0983 <screeninfo></screeninfo>
0984   <mediaobject>
0985     <imageobject>
0986       <imagedata fileref="window-matching-emacs.png" format="PNG"/>
0987     </imageobject>
0988     <textobject>
0989       <phrase></phrase>
0990     </textobject>
0991   </mediaobject>
0992 </screenshot></para></listitem>
0993 <listitem><para>Ignore &Emacs;'s full-screen request by enabling the <guilabel>Obey geometry restrictions</guilabel> attribute, toggling it to off (<guilabel>No</guilabel>) to ignore and selecting the <guilabel>Force</guilabel>  <link linkend="parameters">parameter</link>:
0994 <screenshot>
0995 <screeninfo></screeninfo>
0996   <mediaobject>
0997     <imageobject>
0998       <imagedata fileref="emacs-attribute.png" format="PNG"/>
0999     </imageobject>
1000     <textobject>
1001       <phrase></phrase>
1002     </textobject>
1003   </mediaobject>
1004 </screenshot></para></listitem>
1005 <listitem><para>Click through to complete entry of the rule.</para></listitem>
1006 </orderedlist>
1007 </sect1>
1008 </chapter>
1009 
1010 <!--userbase-content-->
1011 <chapter id="credits">
1012 <title>Credits and License</title>
1013       <para>
1014 Documentation Copyright see the UserBase
1015       <ulink url="https://userbase.kde.org/index.php?title=KWin Rules&amp;action=history">KWin Rules page history</ulink></para>
1016       <!-- TRANS:CREDIT_FOR_TRANSLATORS -->
1017 &underFDL;
1018 </chapter>
1019 &documentation.index;
1020 </book>