diff --git a/Settings.ui b/Settings.ui
index e485aef..10e1756 100644
--- a/Settings.ui
+++ b/Settings.ui
@@ -85,7 +85,7 @@
False
center
- - Raise all windows
+ - Raise windows
- Minimize window
- Launch new instance
- Cycle through windows
@@ -156,7 +156,7 @@
False
center
- - Raise all windows
+ - Raise windows
- Minimize window
- Launch new instance
- Cycle through windows
@@ -227,7 +227,7 @@
False
center
- - Raise all windows
+ - Raise windows
- Minimize window
- Launch new instance
- Cycle through windows
@@ -5429,8 +5429,8 @@
- Cycle windows + minimize
- Cycle through windows
- Toggle single / Preview multiple
- - Toggle all windows
- - Raise all windows
+ - Toggle windows
+ - Raise windows
- Launch new instance
diff --git a/appIcons.js b/appIcons.js
index 5890639..1875352 100644
--- a/appIcons.js
+++ b/appIcons.js
@@ -764,10 +764,10 @@ var taskbarAppIcon = new Lang.Class({
if (this.window && !handleAsGrouped) {
//ungrouped applications behaviors
switch (buttonAction) {
- case 'RAISE': case 'CYCLE': case 'CYCLE-MIN': case 'MINIMIZE':
+ case 'RAISE': case 'CYCLE': case 'CYCLE-MIN': case 'MINIMIZE': case 'TOGGLE-SHOWPREVIEW':
if (!Main.overview._shown &&
- (buttonAction == 'MINIMIZE' ||
- (buttonAction == 'CYCLE-MIN' && this._isFocusedWindow()))) {
+ (buttonAction == 'MINIMIZE' || buttonAction == 'TOGGLE-SHOWPREVIEW' || buttonAction == 'CYCLE-MIN') &&
+ (this._isFocusedWindow() || (buttonAction == 'MINIMIZE' && (button == 2 || modifiers & Clutter.ModifierType.SHIFT_MASK)))) {
this.window.minimize();
} else {
Main.activateWindow(this.window);
@@ -846,6 +846,14 @@ var taskbarAppIcon = new Lang.Class({
minimizeWindow(this.app, false, this._dtpSettings);
else
activateFirstWindow(this.app, this._dtpSettings);
+ } else {
+ // minimize all windows if double clicked
+ if (Clutter.EventType.CLUTTER_BUTTON_PRESS) {
+ let click_count = event.get_click_count();
+ if(click_count > 1) {
+ minimizeWindow(this.app, true, this._dtpSettings);
+ }
+ }
}
}
else