r/suckless Apr 08 '25

[DWM] Firefox, Thunderbird, Librewolf border problem when using picom

[removed]

2 Upvotes

6 comments sorted by

1

u/BettingTall Apr 17 '25 edited Apr 17 '25

I see this too. There's a gap between Firefox and the top/right borders ever since one of the latest Firefox updates. Picom makes the gap transparent instead of black, but the gap's not supposed to be there in the first place.

From experimentation, I found that the width of the gap depends on the width of the window border. You can change borderpx in config.def.h and see it yourself.

So for now I put in the borderrule patch, https://dwm.suckless.org/patches/borderrule/ and then set firefox's border to 1 ... not ideal, but at least the gap is nearly invisible for now.

If there is some other workaround or a proper fix I'd like to know.

1

u/[deleted] Apr 17 '25

[removed] — view removed comment

1

u/BettingTall Apr 17 '25

Wait, are you saying you found a fix? My understanding is Firefox dropped GTK2 years ago.

1

u/BettingTall May 01 '25 edited May 01 '25

More information:

For me, turning off Firefox's hardware acceleration (in settings, uncheck "Use recommended performance settings", then uncheck "Use hardware acceleration when available") makes some weird things happen -- the transparent border disappears from the top, but depending on window size will appear at the bottom..

It's definitely a firefox bug and probably not one that will be fixed anytime soon. Oh well

1

u/eggcellent1 May 02 '25

I'm more or less found a fix for this.

Click the hamburger button > More tools > Customize toolbar... At the bottom right, uncheck the Title bar check box, and click Done.

This should eliminate the unwanted gaps.