Closed Bug 1743981 Opened 3 years ago Closed 1 year ago

[Wayland] Sharp bottom corners on window

Categories

(Core :: Widget: Gtk, enhancement)

Firefox 94
enhancement

Tracking

()

RESOLVED DUPLICATE of bug 1850827

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.

Attached image wayland.png

Wayland behaviour, rounded top corners, sharp bottom corners.

Attached image xwayland.png

wayland behaviour, rounded top and bottom corners

Attached image others.png

Behaviour of other apps

Note that the patched mutter version can be found here: https://github.com/yilozt/mutter-rounded

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.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

(In reply to gschram from comment #2)

Created attachment 9253379 [details]
xwayland.png

Xwayland 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.

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1850827
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: