-
-
Notifications
You must be signed in to change notification settings - Fork 597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid border color on xfce4-terminal, sakura #285
Comments
what are you trying to achieve? there is a lot of things in your configuration file so it will be better if you describe what behavior you expect and what behavior you get. and correct the issue title, please. it should briefly describe the issue. |
I want to make terminal windows 5% transparent and borders 25% transparent.
But borders on some applications are not properly coloured. |
i assume that on your screenshot two windows on the right are inactive and have properly colored borders, the top left window is inactive too, but has not properly colored borders and the bottom left window is active and has properly colored borders? am i right? |
top right - proper |
@mighty9245 and this one |
are you using experimental backends? |
I`ve tested this on xrender and glx with same result |
i mean, do you launch picom with |
Nope. I don't use experimental backends option, |
well, i can't reproduce this behavior running bspwm and kitty, so this is probably a qtile thing: either an upstream issue or a thing in qtile that picom handles incorrectly. wait for @yshui response. |
Listen to fun part. I tried with kitty and it worked. |
So it looks like problem with qtile not compositor. |
i would recommend to keep this issue open because this may be a bug with how picom handles some things as well and we could do something about this. |
So let's do that way. After that check eventually I will ping qtile programmers. |
Ok. I`ve done some investigation on this case and changed source code of qtile. Problem with weird border color appears only when picom is running. Without compositing manager borders looks fine and have same forced border color. I`ve checked bspwm and dwm, there border colors are ok. |
I observe the same behavior in my set up:
The firefox's border has bright translucent border while xterm and pcmanfm has correct border color. I have tried picom, compton, and xcompmgr; all with default configuration. incorrect border color in firefox correct border color in xterm and pcmanfm |
@akemrir sorry, with the setup in your original post, what does it look like if you don't run picom? |
@yshui borders have valid colors when picom is not running. |
hey, |
@mighty9245 yes, exactly |
@akemrir thanks. can i have a screenshot for reference? |
I think the cause of my issue is probably a different one, but not sure if I should open a new ticket... I found that only when I enable webrender in firefox, the border has invalid color. I toggled Just for fun, I installed alacritty and the invalid border color shows up for this one as well. Since both of these programs are written in Rust, I suspect my issue have something to do with how picom deal with Rust rendering. xterm has some frame opacity with default config? firefox has invalid border color with webrender enabled: firefox has correct border color with webrender disabled and frame-opacity=1 |
@yshui here it is On this screenshot I am using gnome-terminal. But on alacritty and xfce-terminal result is same. |
I think I might know what the problem is. Looks like the RGB color is not properly pre-multiplied with the alpha value. |
@akemrir BTW, does |
@yshui same problem
|
I'm not sure if I have done the tracing correctly... the trace file was empty... github does not allow me to upload .trace file so I just appended .zip to the end |
@linhvng ah, perhaps you are using the xrender backend? Does the glx backend work? |
here is the output of if it helps in looking at the log, I have a terminal open, run apitrace, then open alacritty and firefox, then switch back to the terminal and stop apitrace with here is the output of |
@linhvng it appears your window manager is rendering the frame in a weird way... The frame has an alpha value of 0 (completely transparent). Can you also get a trace with frame-opacity set to 1? |
output of output of @yshui if I have not mentioned yet, thank you for your quick response and for looking into this issue 🙏 |
@linhvng The border still looks transparent even when you set |
It is definitely weird how the border doesn't have the correct alpha value. I wonder if this is a bug in Xorg or the window manager. |
yessir |
@yshui These problems are from qtile wm. |
@akemrir @linhvng You should consider raising this issue to your respective window managers, I need their inputs to better understand this problem. You need to mention this in your report: The window border have a color whose alpha value is 0, causing the border to be rendered improperly, because picom expects a premultiplied color |
@yshui thanks for help, I am putting your conclusions here |
I can reproduce with xfce4-terminal (and with Zoom) on dwm. This old patch for dwm doesn't work. I think I will try to contact the dwm maintainers. |
I`ve tested awesomewm, and there this problem is not present. |
Alright I found a solution for those of us on dwm. Get this patch for dwm which was modified from the alpha patch. Apply it and edit config.h to make everything opaque (look inside the patch to see how to do that). This fixes the border opacity/color problem for xfce4-terminal. I haven't tested it with other programs yet but it should work. This works no matter your picom opacity and dimming settings. Just wanted to update that this doesn't work 100% of the time. I occasionally am still getting the bug. |
Thanks!! I was having this problem for a long time already. |
There's actually an easier 1 line fix for this in dwm that I found here: Hopefully helps some other people out. |
That works way better. The alpha patch actually breaks a little when using the mouse to switch focus. |
@yshui as far as I'm aware this is a wm problem so you can close the issue if you want. |
Platform
Linux 5.4.1-arch1-1 #1 SMP PREEMPT Fri, 29 Nov 2019 13:37:24 +0000
Archlinux 64bit
GPU, drivers, and screen setup
NVidia GTX 1070, nvidia-drivers 440.36, one monitor
Environment
New installation of Qtile.
picom version
v7.5
Configuration:
Expected behavior
Correct border color, instead of transparent white.
Current behavior
Border color of inactive windows is transparent white, on active windows gets very bright color with transparency.
https://imgur.com/a/ciZMGy2
As you can see windows placed on top, both are inactive, but with different border color.
When I turn off picom both have same color.
I am not using rgba colours in qtile. I am leaving handling transparency to picom.
Terminal is xfce4-terminal. I have same problems on sakura
The text was updated successfully, but these errors were encountered: