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(wayland): respect compositor SSD preferences #5124

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

pluiedev
Copy link
Contributor

@pluiedev pluiedev commented Jan 15, 2025

Compositors can actually tell us whether they want to use CSD or SSD!

(Ignore the context menu changes — they will most likely be unified after #4952 anyway)

Compositors can actually tell us whether they want to use CSD or SSD!
@@ -57,6 +59,12 @@ pub const App = struct {
registry.setListener(*Context, registryListener, context);
if (display.roundtrip() != .SUCCESS) return error.RoundtripFailed;

if (context.kde_decoration_manager != null) {
// FIXME: Roundtrip again because we have to wait for the decoration
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine for now. Ideally we can add the fd to the GTK event loop so the event loop wakes up when we have data to process.

@mitchellh mitchellh merged commit 6c2c436 into ghostty-org:main Jan 16, 2025
30 checks passed
@github-actions github-actions bot added this to the 1.1.0 milestone Jan 16, 2025
@mitchellh
Copy link
Contributor

Oops I forgot to fix macOS. Doing this now.

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