Skip to content

Commit

Permalink
desktop name: optimize visible windows check
Browse files Browse the repository at this point in the history
  • Loading branch information
jonian committed Nov 30, 2018
1 parent 38fe084 commit d61426f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions [email protected]/modules/desktopName.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ var DesktopName = new Lang.Class({

_visibleWindows() {
let windows = global.get_window_actors().find(win => {
let desktop = win.metaWindow.get_wm_class() == 'Gnome-shell';
let visible = win.metaWindow.showing_on_its_workspace();
let skipped = win.metaWindow.skip_taskbar;

return !desktop && visible;
return visible && !skipped;
});

return windows;
Expand Down

0 comments on commit d61426f

Please sign in to comment.