kwin/autotests
Vlad Zahorodnii acb0683e0d wayland: Properly handle async xdg-decoration updates
Currently, if a window switches between SSD and CSD, it is possible to
encounter a "corrupted" state where the server-side decoration is wrapped
around the window while it still has the client-side decoration.

The xdg-decoration protocol fixes this problem by saying that decoration
updates are bound to xdg_surface configure events.

At the moment, kwin sort of applies decoration updates immediately. With
this change, decoration updates will be done according to the spec.

If the compositor wants to create a decoration, it will send a configure
event and apply the decoration when the configure event is acked by the
client. In order to send the configure event with a good window geometry
size, kwin will create the decoration to query the border size but not
assign it to the client yet. As is, KDecoration api doesn't make
querying the border size ahead of time easy. The decoration plugin can
assign arbitrary border sizes to windows as it pleases it. We could change
that, but it effectively means starting KDecoration3 and setting existing
window deco ecosystem around kwin on fire the second time, that's off the
table.

If the compositor wants to remove the decoration, it will send a
configure event. When the configure event is acked and the surface is
committed, the window decoration will be destroyed.

Sync'ing decoration updates to configure events ensures that we cannot
end up with having both client-side and server-side decoration. It also
helps us to fix a bunch of geometry related issues caused by creating
and destroying the decoration without any surface buffer attached yet.

BUG: 445259
2021-12-15 12:47:27 +00:00
..
integration wayland: Properly handle async xdg-decoration updates 2021-12-15 12:47:27 +00:00
libinput [libinput] Add support for display mapping 2021-12-13 18:53:23 +00:00
libkwineffects autotests: Fix kwinglplatformtest 2021-06-18 17:31:32 +03:00
libxrenderutils
tabbox Run clazy with qt-keywords fixit 2021-06-08 10:49:42 +03:00
CMakeLists.txt autotests: Drop effect loader tests 2021-12-08 16:29:55 +00:00
onscreennotificationtest.cpp
onscreennotificationtest.h Run clazy with qt-keywords fixit 2021-06-08 10:49:42 +03:00
opengl_context_attribute_builder_test.cpp Move platform backends to backends directory 2021-11-02 09:02:41 +00:00
test_client_machine.cpp
test_ftrace.cpp
test_gestures.cpp tests: fix GestureTest 2021-08-31 01:45:27 +00:00
test_screen_paint_data.cpp
test_virtual_desktops.cpp tests: fix TestVirtualDesktops 2021-08-31 01:45:27 +00:00
test_window_paint_data.cpp effects: Port effects from int screens ids to EffectScreen 2021-10-20 12:09:09 +00:00
test_x11_timestamp_update.cpp Fully port away from KPluginLoader 2021-10-19 21:39:51 +02:00
test_xcb_size_hints.cpp
test_xcb_window.cpp
test_xcb_wrapper.cpp
test_xkb.cpp
testutils.h