swayfx icon indicating copy to clipboard operation
swayfx copied to clipboard

Pure black borders/title backgrounds become transparent

Open Sherirk opened this issue 7 months ago • 1 comments
trafficstars

  • Swayfx Version: swayfx version 0.5 (based on sway 1.10.1)

  • Debug Log: sway.log

  • Configuration File: config (only thing different from default is client.focused set to pure black borders and title background)

  • Stack Trace: Not applicable.

  • Description: When setting the window's borders/title background to pure black (#⁠000000) they end up transparent instead. At first they will take the black color for less than a second and then become transparent. Even if you use the form #⁠RRGGBBAA the alpha component gets ignored and the borders/title background stay transparent. The title text itself has a pure black rectangle behind it, only the rest of the title background becomes transparent. When making the windows floating the border/title background stays black while moving, but goes transparent the moment you stop moving them. If you set the colors anything but pure black (even #⁠000001 works) then the problem goes away, at this point you can even use the #⁠RRGGBBAA form and change the alpha component without problem.

Image

Sherirk avatar Apr 18 '25 02:04 Sherirk

Interesting find! I'll check if this impacts upstream

WillPower3309 avatar Apr 18 '25 03:04 WillPower3309