All windows have rounded corners (see exception below)
xfce4-terminal in dom0 is transparent
The problems (tl;dr)
Terminals anywhere other than dom0 are not transparent (at opacity = 0 the terminals have a solid black background rather than showing the desktop)
Browsers/terminals/windows of any kind that are not dom0 have rounded corners, but the part of the corner that is removed is black rather than transparent.
My conclusion is that, for the Qubes unified desktop to work, the OS first draws a black background for a new VM window and then draws the actual application overtop. Hence, rounding corners or making windows transparent would reveal a black background rather than the desktop as expected. But I’m no expert so I’m likely wrong
Is there a way to change this? Is it a Qubes/XFCE/VM/i3/Xen issue?
I’ve only managed to tweak i3 configurations (zeroing opacity on a variety of color settings, like using #00000000) to no avail.
Have you downloaded the latest version or built picom from source?
I would suggest you take the sample configuration and try all the different options to see if it can fix your problem. Switching backends might also help. It could also be an issue with how Qubes handle the qubes windows too like you pointed out. I would still try out playing with picom settings just in case but if dom0 windows are not showing the same behavior then it could be coming from somewhere else.
“picom --version” gives me v10. Looking at their Github releases, I see that v11-rc1 includes a fix that removes black corners on xrender, which is the default backend.
That said, setting the “--backend glx” solved the black corner issue. However, extensive tweaks of the configuration file has yielded no changes in the terminal transparency.
Any ideas on what the graphics communication backend is for Qubes, especially for VM windows? I’m also interested in removing all window borders (except the top with the title), and removing borders with i3 config has proven fruitless. I think the backend is to blame for this AND the inability to make VM terminals transparent.
Got it. In my mind i imagined, just copying and pasting the text using the clipboard. But, I’ll take the recommendations and see if that works. Thanks.
An overview of the GUI implementation is described in the official docs here.
Once you get the overall idea, then see how all the stuff looks like from the point of view of a domain (from the inside): here’s a screenshot, which showcases it:
However, this screenshot showcases the point of view of an application inside a qube, rather than what happens in dom0. After reading the docs carefully on the communication between an AppVM and dom0, the conclusion is that the “final window drawn by dom0” is by dom0 to handle, hence the colorful borders with labels and other fancy stuff like making certain windows semi-transparent.
I believe the easiest way to witness this is to open the XFCE4 Window Manager Tweaks application and set the “Opacity of inactive windows” slider to some value lower than 100%.
At this point in troubleshooting, I have decided (for my personal implementation) to abandon the pursuit of transparent terminals. It is proving to be more effort than I am willing to put forth at present (or it is not possible on Qubes).
If someone figures this out at a later date, please comment below!
Oh, I recall something else! Considering the idea:
Last year I raised this issue, which got fixed. Considering one comment, I suppose that certain terminals may try to do some fancy decorating themselves, only for it to be sanitized and rendered as pitch black box. I can still see this in Nautilus running in a Fedora 40 qube, but it’s not as blatant as in that issue. I’ll attach it, so I can showcase something else, what’s less distracting than that one ugly box from the issue:
While the black box on the folder being dragged is there alright (I suppose Nautilus tries to draw a nice-looking shadow here), please open this attachment in a new tab and see, that this screenshot, which was taken in dom0 with a mountainous photograph wallpaper (/usr/share/backgrounds/qubes/benjamin-voros-phIFdC6lA4E-unsplash.jpg to be precise) has no snippets of this wallpaper at the outside of the xfwm4 window border, but instead there’s plain white color, not even the window shadows I have enabled.
I suppose that certain tools may just act differently than expected, but also I can’t tell, why your specific configuration renders the way it renders. We can try and debug it, but I’d start with some details like the i3 and picom versions used - are they taken straight from the Qubes dom0 repository/Fedora 37 repository, or some custom compilation is taking place here? Does it behave the same way on Fedora 37 with its/your custom i3 and picom config? Asking, since it may be related to this point:
Browsers/terminals/windows of any kind that are not dom0 have rounded corners, but the part of the corner that is removed is black rather than transparent.
I’ve been using picom in dom0 for more than a year with i3. Never had any problems getting transparency in appVM terminals or dom0 for that matter. I have an “exec_always” statement in my i3 config to run picom. I also have a separate picom.conf as another poster mentioned.
Are you using the opacity setting to achieve transparency, or are you redrawing the background?
I’ve got the opacity setting to work just fine, as mentioned.
The one downside to opacity, is that it also reduced the opacity of the foreground text.
It’s a challenging question, but if anyone figures out how to keep foreground opacity at 100%, and only reduce the background opacity, that would be ideal.