diff --git a/effects/presentwindows/presentwindows.cpp b/effects/presentwindows/presentwindows.cpp index cfce07281a..cf92a5be69 100644 --- a/effects/presentwindows/presentwindows.cpp +++ b/effects/presentwindows/presentwindows.cpp @@ -719,6 +719,11 @@ void PresentWindowsEffect::mouseActionWindow(WindowMouseAction& action) m_highlightedWindow->minimize(); } break; + case WindowCloseAction: + if (m_highlightedWindow) { + m_highlightedWindow->closeWindow(); + } + break; default: break; } diff --git a/effects/presentwindows/presentwindows.h b/effects/presentwindows/presentwindows.h index 6e95bdada9..9f2c21fa1f 100644 --- a/effects/presentwindows/presentwindows.h +++ b/effects/presentwindows/presentwindows.h @@ -149,7 +149,8 @@ public: 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_config.ui b/effects/presentwindows/presentwindows_config.ui index 54bb80e18f..acd8730370 100644 --- 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 + +