This page is a translated version of the page KWin Rules Window Matching and the translation is 100% complete.
The Window Matching tab is used to specify the criteria KWin uses to evaluate whether the rule is applicable for a given window.
Window class (application) - match the class.
Match whole window class - include matching the secondary class.
Window types - restrict the match to the type of window: Normal Window, Dialog Window, etc.
Window title - restrict the match to the title of the window.
Machine (hostname) - restrict the match to the host name associated with the window.
While it's possible to manually enter the above information, the preferred method is to use the Detect Window Properties button.
Unimportant - ignore the field.
Both Exact Match and Substring Match implement case insensitive matching. For example, AB matches the string AB, ab, Ab and aB.
Regular Expression - Qt's regular expressions are implemented - see pattern matching using regular expressions.
The Detect Window Properties function simplifies the process of entering the matching-criteria.
For the application you'd like to create a rule, start the application.
Next, in the Window matching tab, set the number of seconds of delay before the Detect Window Properties function starts. The default is zero seconds.
When the mouse-cursor turns to cross-hairs, place it inside the application window (not the title bar) and left-click.
Secondary class name - some applications have a secondary class name. This value can be used to restrict windows by this value.
Click the OK button to back-fill the Window Matching criteria.
By using a combination of the information, a rule can apply to an entire application (by Class) or a to a specific window Type within the Class - say a Toolbar.
This page was last modified on 18 July 2013, at 19:53.	Content is available under Creative Commons License SA 4.0 unless otherwise noted.