https://bugs.kde.org/show_bug.cgi?id=419235

Kirill Chibisov <cont...@kchibisov.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cont...@kchibisov.com

--- Comment #7 from Kirill Chibisov <cont...@kchibisov.com> ---
Hi, to get better understanding why this could happen, let me explain how
decorations are handled in alacritty, so you may have a better understanding
why you're facing this bug in KDE.

First of all, all decorations on Wayland in alacritty are done by this
project[1]. So it handled them by ALWAYS creating 5 subsurfaces[2], when you
try creating a window, and SSD/CSD mode doesn't really matter here, since it's
fine to create them, but not draw anything to them(it's a bit ugly, but it's
correct code, that is being handled by mostly all compositors correctly). So
those 5 subsurfaces are 1 for title bar and 4 for borders, the title bar is
30px, so one call to window geometry is -30px offset for some initial drawing,
however that subsurface is not presented. However you may see the
`set_geometry` with -30, ones, however there will be a proper set geometry
later AFAICS.

So, my theory is that our subsurfaces setup is somehow confusing kwin and it
thinks that it should allocate space for those subsurfaces, where in reality it
shouldn't (sway handles it correctly here AFAIK). But it could be that geometry
calls are confusing kwin as well and it not trying to redraw window, idk.

Also, you don't need alacritty to test this bug on, just any example from [1]
should do a job(It uses rust wayland impl by default, so WAYLAND_DEBUG could be
a bit different in terms of how it looks). Just running 'cargo run --example
kbd_input' on those examples will likely work to repro and the code is more
transparent and could give a better understanding why it happens.

[1] - https://github.com/Smithay/client-toolkit
[2] -
https://github.com/Smithay/client-toolkit/blob/3555b3ce138422dc117e5b9ae33a22f574aa32be/src/window/concept_frame.rs#L346

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to