[AppIcon] Sort minimized windows after normal ones in AppIcon menu
https://bugzilla.gnome.org/show_bug.cgi?id=596389
This commit is contained in:
parent
7f468b36e7
commit
d4a2f9e604
@ -160,13 +160,15 @@ AppIcon.prototype = {
|
|||||||
|
|
||||||
_resortWindows: function() {
|
_resortWindows: function() {
|
||||||
this.windows.sort(function (a, b) {
|
this.windows.sort(function (a, b) {
|
||||||
let timeA = a.get_user_time();
|
let visA = a.showing_on_its_workspace();
|
||||||
let timeB = b.get_user_time();
|
let visB = b.showing_on_its_workspace();
|
||||||
if (timeA == timeB)
|
|
||||||
return 0;
|
if (visA && !visB)
|
||||||
else if (timeA > timeB)
|
|
||||||
return -1;
|
return -1;
|
||||||
return 1;
|
else if (visB && !visA)
|
||||||
|
return 1;
|
||||||
|
else
|
||||||
|
return b.get_user_time() - a.get_user_time();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user