Skip to content

Replacing removed global.stage.get_title() (removed in GNOME 45+) with focus-window title as a safe fallback. - #1270

Open
mward5 wants to merge 2 commits into
rvaiya:masterfrom
mward5:fix-gnome45-get-title
Open

Replacing removed global.stage.get_title() (removed in GNOME 45+) with focus-window title as a safe fallback.#1270
mward5 wants to merge 2 commits into
rvaiya:masterfrom
mward5:fix-gnome45-get-title

Conversation

@mward5

@mward5 mward5 commented May 29, 2026

Copy link
Copy Markdown

The keyd extension is trying to call global.stage.get_title(),
which no longer exists in GNOME's Clutter library interface.

You can see an error like this in the log.
gnome-shell[229921]: JS ERROR: TypeError: global.stage.get_title is not a function
enable/<@file:///home/mward/.local/share/gnome-shell/extensions/keyd/extension.js:53:39
open@resource:///org/gnome/shell/ui/screenshot.js:1664:28
async*_init/</<@resource:///org/gnome/shell/ui/status/system.js:125:35

I could reproduce it in Ubuntu 26.04 using

Screenshot — Quick Settings → Screenshot (or Print Screen).
Power / logout modal — Power menu → Log Out (or whatever opens the confirm dialog) → Cancel (don’t actually log out).

Both log global.stage.get_title is not a function at extension.js:53 with the old extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant