-
-
Notifications
You must be signed in to change notification settings - Fork 477
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
Titlebar looks weird under wayland #1044
Comments
This is an upstream issue that isn't directly related to glutin or winit: Smithay/wayland-window#19 Since Wayland requires clients to draw their own decorations, getting native results would require non-trivial time investment. I'd be interested in trying to design a better set of stock decorations, but I'd likely make them pink. |
Thank you! I didn't know that. |
To expand a little more on @francesca64 's explanations, decoration drawing is currently handled by SCTK (wayland-window is its predecessor). Wayland requires a client to be able to draw its own decorations, as some compositors will not draw them for the clients (on example is Gnome's mutter). As such, I have implemented in SCTK a very basic decoration drawing. It aims at being functional rather than pretty, as I am no GUI designed. Any help to make them prettier would be very welcome though. On the other hand, since a few days ago, there is now a protocol extension to allow negotiation between the client and the server of which will draw the decorations (as for example, KDE's Kwin can handle the decorations drawing, and tends to prefer doing it). I plan to integrate this protocol is SCTK at some point, and have an issue tracking it once I get the bandwidth for it (or someone else want to tackle it), and it'll also require other compositors to adopt this extension (hopefully KDE will switch to the standard one rather than its custom internal one). |
When I run the "window" example under Wayland, the window decorations are looking very unusual:
When I use xorg instead, it all looks like expected:
This affects several downstream projects, including alacritty and Servo.
System information:
Ubuntu 18.04 64bit, Gnome 3.28.1, Display driver: radeon
The text was updated successfully, but these errors were encountered: