From 55585514f926d1251148e876bfe9ce3504432997 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 8 Feb 2013 11:37:58 +0100 Subject: [PATCH] Remove close window mouse action from Present Windows effect This feature has been superseded by the close window button and as it is a rather destructive action it makes sense to remove it. Sorry to everyone who used it. CCBUG: 314393 REVIEW: 108851 --- effects/presentwindows/presentwindows.cpp | 5 ----- effects/presentwindows/presentwindows.h | 3 +-- effects/presentwindows/presentwindows_config.ui | 15 --------------- 3 files changed, 1 insertion(+), 22 deletions(-) diff --git a/effects/presentwindows/presentwindows.cpp b/effects/presentwindows/presentwindows.cpp index 9cfd5993ff..ace76bcf48 100755 --- a/effects/presentwindows/presentwindows.cpp +++ b/effects/presentwindows/presentwindows.cpp @@ -670,11 +670,6 @@ 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 7e09b0265e..eecf70afd4 100644 --- a/effects/presentwindows/presentwindows.h +++ b/effects/presentwindows/presentwindows.h @@ -137,8 +137,7 @@ 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 - WindowCloseAction = 6 // Closes the window + WindowMinimizeAction = 5 // Minimize the window }; enum DesktopMouseAction { DesktopNoAction = 0, // nothing diff --git a/effects/presentwindows/presentwindows_config.ui b/effects/presentwindows/presentwindows_config.ui index 336efec0cc..cb1ebba527 100644 --- a/effects/presentwindows/presentwindows_config.ui +++ b/effects/presentwindows/presentwindows_config.ui @@ -161,11 +161,6 @@ (Un-)Minimize window - - - Close window - - @@ -210,11 +205,6 @@ (Un-)Minimize window - - - Close window - - @@ -259,11 +249,6 @@ (Un-)Minimize window - - - Close window - -