Closed Delected closed 2 years ago
ok wait i just realized how horrible the video recording is.. maybe not such a great idea to video record on an ancient laptop
let me get some screenshots instead
any comments on this? it's been over a month. i've been using kwin compositing for a little, and i totally forgot about this issue.
thanks for any further update :)
This happens also to me with both, glx and xrender.
But I have noticed that using glx it only affects, most of the times, the active window:
While using xrender it affects all of them:
Arch Linux 5.14
bspwm
vgit-ad18d
yeah, i wonder if any attention will be brought to this
i have the exact same problem
Same here
The xrender backend doesn't have the ability to draw rounded borders, sorry.
For the inconsistencies in the glx backend, looks like the border width isn't detected correctly. Can you:
xwininfo
on a window that's not rendered correctly. e.g. in your case, an focused window.i have switched to bspwm and no longer have the problem
Using bspwm 0.9.10-1 and having the same issue. When window loses focus then inner corners are rounded correctly.
Setting use-damage
to false fixes the flickering and artifacts for me.
Setting
use-damage
to false fixes the flickering and artifacts for me.
This method really be useful, thanks!!!
I am also experiencing the same problem on basically every window on i3wm, use-damage
doesn't help
I have the same bug using Manjaro i3 + picom.
use-damage = true
doesn't change anythingglx
or xrender
doesn't change anythingHello everyone! I'm noticing that nobody has written a post for almost one month but, since I tried picom for the first time today, I'd wish to report the same issue which @Delected pointed out in his first post. I've been experiencing this inconsistency between border and window radius since when I first enabled corner-radius in picom conf today.
Here are a couple of informations on my sistem:
use-damage = true
and xrender
; I also tried the glx
option but I had no positive results, as it's been already reported in https://github.com/yshui/picom/issues/683#issuecomment-1161418837 tooThis should've been fixed in experimental glx backend already. The xrender backend does not draw the rounded border, and I don't plan to implement it, as xrender is meant to be a fallback backend anyway.
However if someone want to open a PR they are more than welcome to do so.
@yshui Unfortunately, the issue still persists even though both glx
and --experimental-backends
options are enabled.
I was able to get rid of the screen tearing through the glx
and the vysnc = true
options though, so I'm pretty happy with my setup. I guess I'll disable rounded corners and keep an eye on further developments. Thank you for replying!
I solved this by
backend = "glx";
use-damage = false;
@Vishvamitra Are you using the latest git build?
@eeeXun Unfortunately your suggestion here https://github.com/yshui/picom/issues/683#issuecomment-1186971820 hasn't solved the issue for me.
@yshui I didn't build picom from git: I'm using the default package from Debian Testing repository which corresponds to picom version 9.1-1
@Vishvamitra If you have time can you use apitrace to record a trace of picom?
@yshui Yes, sure! It's the first time I'm using apitrace though: what command am I supposed to type?
@Vishvamitra There is some instructions here: https://github.com/yshui/picom/wiki/Reporting-issues#capture-a-trace Ask me anything if you need help!
@yshui I have followed your instructions and I've generated three picom.trace
files: I'm uploading the third one, since I ran this tracing on a completely blank workspace and it's the smallest file. I'll upload a .zip file.
@Vishvamitra you didn't enable round corner in your trace?
@yshui Yeah, I disabled rounded corners. Should I run one more test with rounded-corner radius enabled? I'm sorry, it's my first time using this program.
@Vishvamitra Don't worry about it! I need to enable rounded corner while capturing the trace, so the trace can help me understand what is happening when the corner is rendered.
Sure! I'll run another test quickly and post the zip here.
Edit: here's the new zip.
@Vishvamitra you weren't using --experimental-backends
Sorry, I didn't know I was supposed to, since that flag doesn't give me a different result.
If I want to run a new test, should I run the following command apitrace trace picom --experimental-backends --log-level=trace
?
@Vishvamitra Yes, please remember to enable both --experimental-backends
and rounded corners
@yshui Ok, I've got the zip with the latest test: hopefully this one is fine! Please excuse me for making you waste your time.
@Vishvamitra No worries! Thank you for taking your time to repeat this so many times.
May I ask what WM are you using? What is the xprop
and xwininfo
output for your terminal window?
@yshui I should be the one thanking you for the support!
I'm using standard i3 as my only window manager and I'm currently using lxterminal. Here's a screenshot with the info of both xprop
and xwininfo
of my terminal window.
While I was waiting for your answer, I was running a couple of tests and I've realized that this problem doesn't occur while using mpv: if you look carefully at this screenshot you will notice that both the inner and the outer window corners are perfectly rounded!
What's interesting is that I've enabled the hwdec=auto
in mpv config, so I'm wondering if forcing vaapi (which is what mpv is using) on every other program on my desktop will fix this issue.
This is a bug of i3: https://github.com/i3/i3/issues/4292
This is a bug of i3: i3/i3#4292
Ok, thank you for the clarification. It's strange that the rounded corners are displayed properly in mpv, though.
maybe i3 treated mpv differently, i don't know.
If you want this fixed you should prod the i3 devs.
If you want this fixed you should prod the i3 devs.
@yshui I'll check their github page and see if any issue about this problem has been opened yet. Even though my knowledge about this topic is quite limited, I can't keep wondering if hardware acceleration should be considered, because mpv is using hardware acceleration and it renders the corners properly.
@Vishvamitra
if any issue about this problem has been opened yet.
I linked the issue in my comment above.
Yes, I've just noticed. Thank you!
I solved this by
backend = "glx"; use-damage = false;
This solved it for me. Thanks so much! The issue for me was somewhat different than described here tho'. Firefox had rounded corners as well as dwm status bar. However, kitty had no rounded corners and neither did st. I found the solution before I had time to do more testing, but it seems no terminal would get the rounded corners.
I am on dwm, linux void.
I solved this by
backend = "glx"; use-damage = false;
This works for me in Debian 12
Platform
Void Linux amd64/x64 Intel Pentium CPU
GPU, drivers, and screen setup
xf86-video-intel-2.99.917.20210115_1
my glxinfo -B:
Environment
dwm
picom diagnostics
Configuration
any configuration where i add round borders and corners generates this error for me.
Expected behavior
I expect the glx and xrender backends to generate the same borders and corners as long as I am not using the experimental backends option.
Current Behavior
when running picom from terminal using the glx backend with rounded corners, i am getting an error
[ 09/03/2021 14:20:26.007 glx_init_rounded_corners ERROR ] GLX error at line 567: GL_INVALID_ENUM
. If i remove the rounded corners from my config, the error goes away. Note that picom still runs fine even with the error (see video below). I tried using a more sane xrender backend, and there were no glx errors (obviously) in console. the round corners also look much smoother using xrender. the biggest inconsistency is that using xrender the corners of my windows are still square, while my borders stay rounded. this is very hard to put in words so please see the video below (you might need to zoom a little to see the difference.)youtube video, sorry i could not directly add it to github since it's an ogv file
or screenshots below
using xrender, borders are still square while corners are round:
using glx, many things glitch for me. borders are sort of rounded, but it glitches back and forth. you might want to see the video.. also for some reason my scrot is really buggy with picom glx (hence the weird lines.)
the weirdest part is that even using glx, the corners are still inconsistent. A user on Reddit (also @edencreeper on github) is having the same issue, even on the same display. If you take a look at the linked post, some of the window corners are rounded while others are not. this is very odd... I invite anyone else to expand on this by adding their experiences.
lastly, it is worth noting that this issue persists on ibhawgan's fork of picom too. I just wanted to make sure in case his pr was not fully merged here yet