[gnome-shell-extensions] workspace-indicator: Exclude DESKTOP windows from window previews
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions] workspace-indicator: Exclude DESKTOP windows from window previews
- Date: Thu, 21 Nov 2019 21:44:07 +0000 (UTC)
commit 95131dc252e235720a70a9f642cd3b0529193b27
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Sep 6 20:47:56 2019 +0200
workspace-indicator: Exclude DESKTOP windows from window previews
While nautilus removed its desktop support a while ago in favor of an
extension, it's still possible that some external X11 desktop icon app
is used. As DESKTOP windows cannot be moved between workspaces or stacked,
and aren't perceived as regular windows, it doesn't make sense to show
them as previews in the workspace switcher.
https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/93
extensions/workspace-indicator/extension.js | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/extensions/workspace-indicator/extension.js b/extensions/workspace-indicator/extension.js
index 3b202c2..6ea3eeb 100644
--- a/extensions/workspace-indicator/extension.js
+++ b/extensions/workspace-indicator/extension.js
@@ -83,6 +83,7 @@ class WindowPreview extends St.Button {
_relayout() {
let monitor = Main.layoutManager.findIndexForActor(this);
this.visible = monitor === this._window.get_monitor() &&
+ this._window.window_type !== Meta.WindowType.DESKTOP &&
this._window.showing_on_its_workspace();
if (!this.visible)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]