Use meta_window_is_skip_taskbar() directly
Rather than going through ShellWindowTracker, we can just clean up the code to use the underlying MetaWindow property directly. https://bugzilla.gnome.org/show_bug.cgi?id=723308
This commit is contained in:
@ -1532,7 +1532,7 @@ const AppIconMenu = new Lang.Class({
|
||||
this.removeAll();
|
||||
|
||||
let windows = this._source.app.get_windows().filter(function(w) {
|
||||
return Shell.WindowTracker.is_window_interesting(w);
|
||||
return !w.skip_taskbar;
|
||||
});
|
||||
|
||||
// Display the app windows menu items and the separator between windows
|
||||
|
@ -1619,8 +1619,7 @@ const Workspace = new Lang.Class({
|
||||
|
||||
// Tests if @win should be shown in the Overview
|
||||
_isOverviewWindow : function (win) {
|
||||
let tracker = Shell.WindowTracker.get_default();
|
||||
return tracker.is_window_interesting(win.get_meta_window());
|
||||
return !win.get_meta_window().skip_taskbar;
|
||||
},
|
||||
|
||||
// Create a clone of a (non-desktop) window and add it to the window list
|
||||
|
@ -507,8 +507,7 @@ const WorkspaceThumbnail = new Lang.Class({
|
||||
|
||||
// Tests if @win should be shown in the Overview
|
||||
_isOverviewWindow : function (win) {
|
||||
let tracker = Shell.WindowTracker.get_default();
|
||||
return tracker.is_window_interesting(win.get_meta_window()) &&
|
||||
return !win.get_meta_window().skip_taskbar &&
|
||||
win.get_meta_window().showing_on_its_workspace();
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user