Make the window labels visible at all times
When in overview, window labels flicker or are temporarily hidden on a number of occasions - when simply clicking around the area the windows are displayed in, dragging a window, sliding in the workspace list, adding new workspaces etc. This patch makes the label for any window visible at any given moment when in overview and the said window is not being dragged around. https://bugzilla.gnome.org/show_bug.cgi?id=644861
This commit is contained in:
@ -267,10 +267,8 @@ const WorkspacesView = new Lang.Class({
|
||||
for (let w = 0; w < this._workspaces.length; w++) {
|
||||
let workspace = this._workspaces[w];
|
||||
if (this._animating || this._scrolling) {
|
||||
workspace.hideWindowsOverlays();
|
||||
workspace.actor.show();
|
||||
} else {
|
||||
workspace.showWindowsOverlays();
|
||||
if (this._inDrag)
|
||||
workspace.actor.visible = (Math.abs(w - active) <= 1);
|
||||
else
|
||||
@ -456,7 +454,6 @@ const WorkspacesView = new Lang.Class({
|
||||
let dy = newY - currentY;
|
||||
|
||||
for (let i = 0; i < this._workspaces.length; i++) {
|
||||
this._workspaces[i].hideWindowsOverlays();
|
||||
this._workspaces[i].actor.visible = Math.abs(i - adj.value) <= 1;
|
||||
this._workspaces[i].actor.y += dy;
|
||||
}
|
||||
|
Reference in New Issue
Block a user