mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
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:
parent
2c649d5da5
commit
102f2a91f9
2 changed files with 63 additions and 45 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue