[Wayland] Sharp bottom corners on window
Categories
(Core :: Widget: Gtk, enhancement)
Tracking
()
People
(Reporter: gschram, Unassigned)
Details
Attachments
(3 files)
Steps to reproduce:
Having MOZ_ENABLE_WAYLAND=1 set, like is the default in the Firefox version shipped with Fedora (35) causes the window to have rounded top-corners, but sharp bottom corners. I am running a patched version of mutter that rounds the bottom corner of all applications. Note that this is currently an edge case but will become an outstanding "feature" with more and more apps moving to GTK4 / Libadwaita that do have the rounded bottom corners.
Actual results:
The bottom corners are sharp while the top corners are rounded.
Expected results:
Both the bottom and top corners should be rounded.
Wayland behaviour, rounded top corners, sharp bottom corners.
Note that the patched mutter version can be found here: https://github.com/yilozt/mutter-rounded
Comment 5•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Also note the original report here: https://bugzilla.mozilla.org/show_bug.cgi?id=1509931#c47
(In reply to gschram from comment #2)
Created attachment 9253379 [details]
xwayland.pngXwayland behaviour, rounded top and bottom corners
For some reason this comment doesn't render the X in xwayland
This has nothing to do with Wayland - your patched Mutter doesn't round Wayland clients' corners. Nevertheless, it would be nice to have client-side rounded window corners in environments like GNOME.
In GTK3, this can be achieved by using the HdyWindow widget from libhandy instead of GtkWindow. (as GtkWindow doesn't clip its contents)
In GTK4, rounding window corners can be achieved just with CSS border-radius property on the GtkWindow.
Updated•1 year ago
|
Description
•