brave-browser: [Linux] Black border around menus on desktop enviroments that do not use compositing

Description

After the upgrade to 1.67, there is a big black border around every brave menu, e.g. the one on the right click as you can see in the screenshot below.

Steps to reproduce

  1. Make sure you are running a desktop enviroment (de for short) without compositing or with compositing disabled. Gnome is NOT such a de and I do not know about the other major ones.
  2. Upgrade brave to 1.67.
  3. Right click somewhere or click on the hamburger menu on the top right corner.

Actual result

This. The light blue background is part of the page behind it.

2024-06-14-070738_1280x1024_scrot

Expected result

This, minus the dropped shadows.

2024-06-14-071321_1280x1024_scrot

Reproduces how often

Easily reproduced

Brave version (brave://version info)

Brave	1.67.115 Chromium: 126.0.6478.56 (Official Build) (64-bit) 
Revision	e1f8b4850805c2eea958bad7220c5e6e9202efaa
OS	Linux

Channel information

  • release (stable)
  • beta
  • nightly

Reproducibility

  • with Brave Shields disabled
  • with Brave Rewards disabled
  • in the latest version of Chrome

Miscellaneous information

Theoritically, the above is just this gtk4 issue. And this brings the question: was brave built with gtk4 for 1.67? Its dependencies still mention libgtk-3-0 though and it also follows my gtk3 theme. https://gitlab.gnome.org/GNOME/gtk/-/issues/4815 (please notice the gnome dev’s comments there, i.e. “don’t disable your compositor”)

Moreover, this is not dependant on the gtk3/4 theme. Excluding my beautiful dark theme (numix), I also tried that ugly bright one that comes as the default in gnome (adwaita), but the result was the same. I am not a gnome user, I left it on 2009 when it was still at its 2.2x versions and I never looked back.

Last but not least, I can not test it on chromium 126 because it has not reached my repo yet.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 11
  • Comments: 29 (1 by maintainers)

Most upvoted comments

To more clearly illustrate the regression from v1.66.118: brave_picom

Note that the scale changed too.

Distro: Manjaro Compositor: Picom Desktop: XFCE4

Thanks for the reply. 😄

please install a compositing manager like compton

No thank you. I am using Fluxbox because I don’t like compositing window managers, but I understand what you’re saying. 👍

Seeing the same issue on Arch+i3.

This issue is also present on non-compositing window manager on MATE desktop. I do not want to use compositing window manager and other apps work fine.

Glad to see this is fixed! I’ll go ahead and close the issue. But please do continue reporting back here after updating.

If anyone is still having the issue, we can collect more information and take a look. Thanks!

1.69 fixed for me: xfce on ubuntu 22.04 on arm64

Seems so. Working fine with or without picom on fedora 40 with qtile.

1.69 seems to have finally fixed the issue. I checked it on both openbox and xfce. If anyone else can confirm it, please do so as to close the issue.

Thanks @R0CKH0PP3R but that did not work for me, but this did:

wintypes: { menu = { opacity = 1.0; shadow = false; blur-background=false; } };

@prss-ad - You need to exclude the gtk frame extents in your picom config:

shadow-exclude = [
    "_GTK_FRAME_EXTENTS@:c"
];

blur-background-exclude = [ 
    "_GTK_FRAME_EXTENTS@:c"
];

Same thing here. Using Qtile with picom, i see a semi transparent blurred shadow . Without picom a thick black border. Tested with : Brave Browser 126.1.67.116 Chromium 126.0.6478.55 Fedora Project (40) image