mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
appMenu: Only include non-skip-taskbar windows
There's a subtle difference between the top bar menu and the app icon context menus in the overview regarding the "Open Window" section. The former includes skip-taskbar windows, the latter doesn't. It clearly doesn't make sense for the context menu to include windows that aren't shown in the overview, but skip-taskbar windows are likely also less useful in the top bar menu. Just settle on the behavior of the context menus and move on. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1948>
This commit is contained in:
parent
c809a87412
commit
8b1e1834f0
1 changed files with 1 additions and 1 deletions
|
|
@ -166,7 +166,7 @@ var AppMenu = class AppMenu extends PopupMenu.PopupMenu {
|
|||
if (!this._app)
|
||||
return;
|
||||
|
||||
const windows = this._app.get_windows();
|
||||
const windows = this._app.get_windows().filter(w => !w.skip_taskbar);
|
||||
if (windows.length < 2)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue