You are not logged in.

#1 2020-02-15 14:39:30

ohnonot
...again
Registered: 2015-09-29
Posts: 4,418
Website

Tooltip Shadows in Firefox & other Compton (?) Issues

Hello,
very recently I started using picom on Archlinux. It seems to be compatible with compton because:

ls -al /usr/bin/compton
lrwxrwxrwx 1 root root 5 Nov 29 13:26 /usr/bin/compton -> picom*

Here's one thing that bothers me a little:
With my current GTK theme, tooltips have rounded corners, both in GTK apps and in Firefox.
The shadows look as expected everywhere else, but in Firefox something seems to assume non-rounded corners:
tooltip_shadow_firefox.png
This could be a Firefox or GTK or compton issue - is there a way to solve it?
If not, as a workaround, I'd be perfectly happy to make tooltips square - possibly for Firefox only, or in a GTK settings.ini override?
_______________________________

Another small thing:
tint2 throws a shadow. It is also set to be

panel_layer = bottom

This usually works, but sometimes (haven't quite figured it out yet) it throws shadows on other windows. Which I don't want, I want tint2's shadow to be thrown on the desktop only.
I have now added a rule to rc.xml:

<application title="tint2">
    <layer>below</layer>
</application>

We will see if that helps.

Last edited by ohnonot (2020-02-15 14:41:10)

Offline

#2 2020-02-15 15:52:44

twoion
ほやほや
Registered: 2015-08-10
Posts: 2,680

Re: Tooltip Shadows in Firefox & other Compton (?) Issues

Are you using picom or compton now?

It's very good news that compton maintenance is being picked up. It's the last standalone xorg compositor that is not completely hopeless.

Since BL is using compton, perhaps picom could be offered in the backports repository, with the experimental backends enabled, as a possible way to circumvent issues now present in compton.

As for firefox, you could snoop the notification dbus to see if it does something differently. First thing I would check is whether firefox is using native notifications (through org.freedesktop.Notifications) or draws them by itself (as sometimes seen in shitty electron apps like signal for desktop and microsoft teams).

Finally, if it looks correctly in Adwaita, chances are that the gtk theme CSS is broken and/or incomplete.


Wahllos schlägt das Schicksal zu / heute ich und morgen du.

Offline

#3 2020-02-15 18:35:36

ohnonot
...again
Registered: 2015-09-29
Posts: 4,418
Website

Re: Tooltip Shadows in Firefox & other Compton (?) Issues

^ picom is in [community], compton isn't, so I installed picom.
https://github.com/yshui/picom

Haven't checked with Adwaita/Firefox, will do after this session.

Is it possible to set tooltip corner radius to 0 in either FF's userChrome.css or ~/.config/gtk-3.0/settings.ini?

Offline

#4 2020-02-16 01:43:56

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 6,561
Website

Re: Tooltip Shadows in Firefox & other Compton (?) Issues

twoion wrote:

It's very good news that compton maintenance is being picked up. It's the last standalone xorg compositor that is not completely hopeless.

Since BL is using compton, perhaps picom could be offered in the backports repository, with the experimental backends enabled, as a possible way to circumvent issues now present in compton.

Good news indeed, and thanks to ohnonot for testing picom.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), idle Twitterings and GitStuff )

Introduction to the Bunsenlabs Lithium Desktop

Offline

#5 2020-02-17 07:45:55

ohnonot
...again
Registered: 2015-09-29
Posts: 4,418
Website

Re: Tooltip Shadows in Firefox & other Compton (?) Issues

ohnonot wrote:

Is it possible to set tooltip corner radius to 0 in either FF's userChrome.css or ~/.config/gtk-3.0/settings.ini?

I will try some userChrome.css stuff.
I can't find much about it on the web...

Offline

#6 2020-02-18 09:17:26

ohnonot
...again
Registered: 2015-09-29
Posts: 4,418
Website

Re: Tooltip Shadows in Firefox & other Compton (?) Issues

@twoion: I am talking about tooltips, not notifications.

I tried Adwaita, which does use rounded corners on tooltips, and the issue is the same. Both on my machine (ArchLinux) and my BL Helium VM.

OK, here's an acceptable workaround:
I put this in chrome/userChrome.css:

tooltip
{
   -moz-appearance: none !important;
   border-radius:0 !important;
   padding:.5em;
   color: white;
   background: black;
   opacity:0.8;
}

(might have to do this first)

It fixes the issue alright, but I'd prefer to not have to completely restyle the tooltips.
I have asked on r/FirefoxCSS, but it doesn’t look too promising...

Any ideas?
Maybe compton does have a solution for this?
Doesn't anybody else suffer from this?

Offline

Board footer

Powered by FluxBB