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:
parent
d44f40d105
commit
b4680a5c25
@ -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();
|
||||
},
|
||||
|
||||
|
@ -1048,7 +1048,7 @@ _shell_app_add_window (ShellApp *app,
|
||||
shell_app_update_app_menu (app, window);
|
||||
shell_app_ensure_busy_watch (app);
|
||||
|
||||
if (shell_window_tracker_is_window_interesting (window))
|
||||
if (!meta_window_is_skip_taskbar (window))
|
||||
app->running_state->interesting_windows++;
|
||||
shell_app_maybe_start_stop (app);
|
||||
|
||||
@ -1072,7 +1072,7 @@ _shell_app_remove_window (ShellApp *app,
|
||||
g_object_unref (window);
|
||||
app->running_state->windows = g_slist_remove (app->running_state->windows, window);
|
||||
|
||||
if (shell_window_tracker_is_window_interesting (window))
|
||||
if (!meta_window_is_skip_taskbar (window))
|
||||
app->running_state->interesting_windows--;
|
||||
shell_app_maybe_start_stop (app);
|
||||
|
||||
@ -1166,7 +1166,7 @@ shell_app_request_quit (ShellApp *app)
|
||||
{
|
||||
MetaWindow *win = iter->data;
|
||||
|
||||
if (!shell_window_tracker_is_window_interesting (win))
|
||||
if (meta_window_is_skip_taskbar (win))
|
||||
continue;
|
||||
|
||||
meta_window_delete (win, shell_global_get_current_time (shell_global_get ()));
|
||||
|
Loading…
Reference in New Issue
Block a user