Skip to content

EndSessionDialog: Fix the dialog is not focused on present - #160

Closed
ryonakano wants to merge 1 commit into
mainfrom
ryonakano/end-session-dialog-focus
Closed

ryonakano wants to merge 1 commit into
mainfrom
ryonakano/end-session-dialog-focus

Conversation

@ryonakano

Copy link
Copy Markdown
Member

I'm not sure if this is a correct fix but apparently there is a method named focus () and calling it does fix the issue that EndSessionDialog does not pull visual focus on latest Early Access.

Checklist

  • Logout
  • Shutdown from session
  • Shutdown from Greeter

Demonstrating the "Shutdown from session" case on behalf of the above conditions:

Screencast.From.2026-10-11.13-37-45.mp4

Comparing with latest main:

Screencast.From.2026-10-11.13-41-14.mp4

@ryonakano
ryonakano requested a review from a team October 11, 2026 04:42
@ryonakano ryonakano added this to OS 9 Oct 11, 2026
@ryonakano ryonakano moved this to Needs Review in OS 9 Oct 11, 2026
@ryonakano

ryonakano commented Oct 11, 2026 •

Copy link
Copy Markdown
Member Author

I found @amz-x seems to fix this issue by patching Gala instead of here in downstream. Possibly that fixes the underlying issue?

From NixOS/nixpkgs#554381:

  • fix-modal-window-focus.patch: system modal dialogs (for example the shut-down dialog from Quick Settings) lost keyboard focus as soon as they appeared. They are now focused once the modal group is set up.

The patch file mentioned is:

https://github.com/amz-x/nixpkgs/blob/nixos-unstable-pantheon/pkgs/desktops/pantheon/desktop/gala/fix-modal-window-focus.patch

@amz-x

amz-x commented Oct 11, 2026

Copy link
Copy Markdown

@ryonakano yes, that is how I fixed the issue. I hope the patch helps!

@ryonakano

Copy link
Copy Markdown
Member Author

Closing in favor of your patch which I submitted in elementary/gala#2954.

@ryonakano ryonakano closed this Oct 11, 2026
@github-project-automation github-project-automation Bot moved this from Needs Review to Done in OS 9 Oct 11, 2026
@ryonakano
ryonakano deleted the ryonakano/end-session-dialog-focus branch October 11, 2026 09:30
@ryonakano ryonakano removed this from OS 9 Oct 11, 2026
@ryonakano
ryonakano removed the request for review from a team October 11, 2026 09:30
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.

2 participants