Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GTK: Fix clicking on desktop notifications #2163

Merged
merged 3 commits into from
Sep 14, 2024

Conversation

jcollie
Copy link
Collaborator

@jcollie jcollie commented Aug 29, 2024

Currently, clicking on a desktop notification will bring Ghostty to the foreground, but it won't necessarily bring the right window to the top and it won't switch tabs or change the focus on splits.

With this patch, clicking on a desktop notification will raise the correct window, change to the correct tab, and focus on the correct split that send the original desktop notification.

@jcollie jcollie force-pushed the gtk-desktop-notification-fix branch from 8ee2565 to 60f86e3 Compare September 12, 2024 04:52
@jcollie
Copy link
Collaborator Author

jcollie commented Sep 12, 2024

Rebased on current main and fixed to work with the Adwaita tabs.

src/apprt/gtk/App.zig Outdated Show resolved Hide resolved
src/App.zig Outdated Show resolved Hide resolved
jcollie and others added 2 commits September 13, 2024 13:37
Currently, clicking on a desktop notification will bring Ghostty
to the foreground, but it won't necessarily bring the right window
to the top and it won't switch tabs or change the focus on splits.

With this patch, clicking on a desktop notification will raise the
correct window, change to the correct tab, and focus on the correct
split that send the original desktop notification.
@mitchellh mitchellh force-pushed the gtk-desktop-notification-fix branch from 60f86e3 to 9e73d86 Compare September 14, 2024 03:45
@mitchellh mitchellh merged commit 779b721 into ghostty-org:main Sep 14, 2024
5 checks passed
@mitchellh mitchellh deleted the gtk-desktop-notification-fix branch September 14, 2024 03:52
@jcollie jcollie mentioned this pull request Sep 15, 2024
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