Open Bug 1719988 Opened 3 years ago Updated 3 years ago

[Buttons on left side] window/titlebar buttons are cropped with Ambiance GTK theme

Categories

(Core :: Widget: Gtk, defect, P3)

Firefox 89
defect

Tracking

()

UNCONFIRMED

People

(Reporter: Rauch.Christian, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36

Steps to reproduce:

I am running Firefox on GNOME Shell with the "Ambiance" theme and window buttons on the left side.

  1. move the window control / titlebar buttons from right to left: gsettings set org.gnome.desktop.wm.preferences button-layout 'close,minimize,maximize:'
  2. start firefox with the "Ambiance" or "Radiance" theme: GTK_THEME=Ambiance firefox
  3. See that the window buttons in the top left are not correctly aligned.

I will give some unsolicited guesses:
I am working on a window decoration library that renders with GTK. I experienced similar issues when using gtk_widget_get_allocation to get button positions and sizes. Using gtk_widget_get_clip instead solved the problem for me, and might also solve the problem for Firefox.

Actual results:

The min/max/close buttons are not correctly aligned and cropped (see screenshot).

Expected results:

The window buttons should be aligned just like for any other GTK program, e.g. GTK_THEME=Ambiance gtk3-demo.

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
Blocks: gtktitlebar
Summary: window/titlebar buttons are cropped with Ambiance GTK theme → [Buttons on left side] window/titlebar buttons are cropped with Ambiance GTK theme
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.