diff --git a/effects/presentwindows/presentwindows.h b/effects/presentwindows/presentwindows.h --- a/effects/presentwindows/presentwindows.h +++ b/effects/presentwindows/presentwindows.h @@ -149,7 +149,8 @@ WindowExitAction = 2, // Deactivates the effect without activating new window WindowToCurrentDesktopAction = 3, // Brings window to current desktop WindowToAllDesktopsAction = 4, // Brings window to all desktops - WindowMinimizeAction = 5 // Minimize the window + WindowMinimizeAction = 5, // Minimizes the window + WindowCloseAction = 6 // Closes the window }; enum DesktopMouseAction { DesktopNoAction = 0, // nothing diff --git a/effects/presentwindows/presentwindows.cpp b/effects/presentwindows/presentwindows.cpp --- a/effects/presentwindows/presentwindows.cpp +++ b/effects/presentwindows/presentwindows.cpp @@ -719,6 +719,11 @@ m_highlightedWindow->minimize(); } break; + case WindowCloseAction: + if (m_highlightedWindow) { + m_highlightedWindow->closeWindow(); + } + break; default: break; } diff --git a/effects/presentwindows/presentwindows_config.ui b/effects/presentwindows/presentwindows_config.ui --- a/effects/presentwindows/presentwindows_config.ui +++ b/effects/presentwindows/presentwindows_config.ui @@ -208,6 +208,11 @@ (Un-)Minimize window + + + Close window + + @@ -252,6 +257,11 @@ (Un-)Minimize window + + + Close window + +