diff --git a/kcmkwin/kwinrules/detectwidget.cpp b/kcmkwin/kwinrules/detectwidget.cpp index a4587f8317..bf38605e60 100644 --- a/kcmkwin/kwinrules/detectwidget.cpp +++ b/kcmkwin/kwinrules/detectwidget.cpp @@ -24,6 +24,7 @@ #include #include #include +#include #include #include @@ -137,10 +138,7 @@ QString DetectDialog::selectedTitle() const Rules::StringMatch DetectDialog::titleMatch() const { -#if KDE_IS_VERSION( 3, 3, 90 ) -#warning Offer possibilities here -#endif - return Rules::UnimportantMatch; + return widget->match_title->isChecked() ? Rules::ExactMatch : Rules::UnimportantMatch; } bool DetectDialog::selectedWholeApp() const diff --git a/kcmkwin/kwinrules/detectwidgetbase.ui b/kcmkwin/kwinrules/detectwidgetbase.ui index 949dd3a416..f822d145f6 100644 --- a/kcmkwin/kwinrules/detectwidgetbase.ui +++ b/kcmkwin/kwinrules/detectwidgetbase.ui @@ -12,6 +12,9 @@ 325 + + Form3 + unnamed @@ -201,6 +204,17 @@ With some (non-KDE) applications whole window class can be sufficient for selecting a specific window in an application, as they set whole window class to contain both application and window role. + + + match_title + + + Match also window &title + + + Alt+T + +