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
This commit is contained in:
parent
899fc4a5c8
commit
55585514f9
3 changed files with 1 additions and 22 deletions
|
@ -670,11 +670,6 @@ void PresentWindowsEffect::mouseActionWindow(WindowMouseAction& action)
|
|||
m_highlightedWindow->minimize();
|
||||
}
|
||||
break;
|
||||
case WindowCloseAction:
|
||||
if (m_highlightedWindow) {
|
||||
m_highlightedWindow->closeWindow();
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -161,11 +161,6 @@
|
|||
<string>(Un-)Minimize window</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Close window</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
|
@ -210,11 +205,6 @@
|
|||
<string>(Un-)Minimize window</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Close window</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
|
@ -259,11 +249,6 @@
|
|||
<string>(Un-)Minimize window</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Close window</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
|
|
Loading…
Reference in a new issue