Skip to content

Avoid crash when there is no focused window in sight #2

@hedgieinsocks

Description

@hedgieinsocks

const focusedWindow = global.display.get_focus_window().get_id();

I have modified your extension to workaround the issue as follows:

const focusWindow = global.display.get_focus_window();
const focusedWindow = focusWindow ? focusWindow.get_id() : null;

This way, when I have no focused windows on my GNOME 44, I can still bring the terminal application from the background.

Please consider implementing my suggestion so I do not have to patch your otherwise awesome extension :D

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions