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
Set _NET_FRAME_EXTENTS #4292
Comments
AFAICT that's something we should do |
Any update on this issue? This problem has persisted for 2 years now. I would even do a PR to fix this problem but my knowledge in C is basically null. |
I guess we can update the |
I'm afraid this isn't enough for picom to round the corner for windows with (Also you can notice that the shadow isn't rendered properly. Including the rounded corner issue, it's an excepted behavior, as technically they are two separate windows) @yshui what's your opinion on this? |
You should be able to select on the i3-frame WM_CLASS to distinguish those windows. If picom allows specifying border radii per corner, you can configure accordingly. For split containers this still wouldn't work in 4.21 due to how it works, but with changes on the current main branch I think that issue should be resolved. |
Hmm. About the shadow issue, although picom have Specifying border radius isn't possible now, but that should be easy to add. |
I'm curious how (as in, why) it works for other window managers. Unless I'm missing something this wouldn't work for any window manager which reparents, which is pretty much all of them. |
traidento@4a75314 tried the |
A quick experiment says that the window title / window decorations are not the parent window of xterm, but an entirely disconnected window in i3. When clicking on xterm itself:
When clicking on the titlebar:
In other WMs, I would expect the xterm window to be a child of the window that contains the titlebar. Put differently: If xterm were 10x10 pixels large, the titlebar would be a window e.g. 10x15 pixels large with the xterm window at position 0x5 inside of this window. In i3 there are two completely separate windows on the same level of the window hierarchy which just happen to be next to each other. |
Ugh, yeah. I'm beginning to remember we may also have a slightly odd structure for floating windows. |
I think the weird structure also caused this, but I'm not sure: |
I've been playing with this a tiny bit and setting The only case where I see a bit of an issue is the tabbed layout where the titles don't get rounded but the windows do (though personally, I don't find that to be that big of an issue): Would there be chances that a solution such as this would get accepted since from my POV it definitely feels better than not setting |
well, with gaps it looks pretty bad I think |
Some time ago I was trying to "fix" _NET_FRAME_EXTENTS for some old java application. Maybe someone find attached patch useful somehow.
|
(looks very similar to what I did) |
Ah, yes, no worries, you're right. Currently, I don't think I have the time to investigate how to do this correctly with the tabbed layout and I would personally prefer to have this rather than the current broken state since it won't affect people who don't have rounded corners enabled Anyway, I would definitely hope either I or someone else will have the time to fix this with the tabbed layout! |
Hmm, so I am actually not sure how to make picom understand it shouldn't round the top borders of the tabbed windows. Originally, I thought it could be done through |
#5384 looked abandoned and not completely correct, so I created another PR (#5944) which tries to set In my testing the new code seems to give correct results for floating windows and tiled windows in simple split containers, but has the same appearance problem with windows in stacked/tabbed containers (the top frame extent is reported as 0, because the title bar for stacked/tabbed containers is not actually inside the X11 frame window for the client; |
I'm submitting a…
Current Behavior
_NET_FRAME_EXTENTS property is
set to all 0snot set, even if i3 border size is not 0.Desired Behavior
_NET_FRAME_EXTENTS being set properly
Environment
Output of
i3 --moreversion 2>&-
:The text was updated successfully, but these errors were encountered: