mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
ctrlAltTab: Ignore DOCK windows without app
The fallback path broke when we removed support for window icons.
Nowadays we track all windows, and as a result should always have an
associated app (although not necessarily backed by a .desktop file),
so this shouldn't make a difference in practice. Not to mention that
external docks (like cairo-dock) are extremely rare themselves now.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3295>
(cherry picked from commit 0d571e9191)
This commit is contained in:
parent
03c2941dff
commit
893bcbdc02
1 changed files with 2 additions and 10 deletions
|
|
@ -90,22 +90,14 @@ export class CtrlAltTabManager {
|
|||
let windows = display.get_tab_list(Meta.TabList.DOCKS,
|
||||
activeWorkspace);
|
||||
let windowTracker = Shell.WindowTracker.get_default();
|
||||
let textureCache = St.TextureCache.get_default();
|
||||
for (let i = 0; i < windows.length; i++) {
|
||||
let icon = null;
|
||||
let iconName = null;
|
||||
if (windows[i].get_window_type() === Meta.WindowType.DESKTOP) {
|
||||
iconName = 'shell-focus-desktop-symbolic';
|
||||
} else {
|
||||
let app = windowTracker.get_window_app(windows[i]);
|
||||
if (app) {
|
||||
icon = app.create_icon_texture(POPUP_APPICON_SIZE);
|
||||
} else {
|
||||
icon = new St.Icon({
|
||||
gicon: textureCache.bind_cairo_surface_property(windows[i], 'icon'),
|
||||
icon_size: POPUP_APPICON_SIZE,
|
||||
});
|
||||
}
|
||||
const app = windowTracker.get_window_app(windows[i]);
|
||||
icon = app.create_icon_texture(POPUP_APPICON_SIZE);
|
||||
}
|
||||
|
||||
items.push({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue