kwin/autotests
Vlad Zahorodnii 33827bbdbe autotests: Fix internal connection teardown
This might be the root cause of random ASAN errors in testQuickTiling.

From commit 617291c6974d232ee99c4c49e891ce16863e3d6e:

The internal EventQueue is a child of the registry object. This means
that after the registry is destroyed, all proxy objects in that event
queue are going to have invalid reference to it, which is not a problem
as long as the wl_display_dispatch() function is not called.

The wl_display_dispatch() function uses wl_proxy's queue reference to
enqueue incoming events to that queue.

Unfortunately, during teardown, the internal ConnectionThread may
dispatch events right after the registry object has been destroyed,
which can lead to a crash.

In order to fix the crash, we need to destroy all proxy objects and only
after that we can destroy the event queue. It's okay if wayland events
are dispatched in between.

i.e. the EventQueue object must be destroyed last to ensure avoid hitting
dangling pointers.
2022-09-08 10:16:35 +00:00
..
integration autotests: Fix internal connection teardown 2022-09-08 10:16:35 +00:00
libinput Move multi-purpose code in its own directory 2022-09-06 11:21:40 +03:00
libkwineffects Make TimeLine API ergonomic with presentation timestamps 2022-05-26 17:10:07 +00:00
tabbox replace all uses of QScopedPointer with std::unique_ptr 2022-08-04 12:30:09 +00:00
CMakeLists.txt utils: Introduce RamFile class for memfd 2022-08-19 15:26:22 +02:00
onscreennotificationtest.cpp Run clang-format 2022-03-25 13:25:15 +02:00
onscreennotificationtest.h Run clazy with qt-keywords fixit 2021-06-08 10:49:42 +03:00
opengl_context_attribute_builder_test.cpp backends/x11/standalone: rename files to be more consistent 2022-07-24 13:05:13 +00:00
test_client_machine.cpp Run clang-format 2022-03-25 13:25:15 +02:00
test_ftrace.cpp Add ftrace markers 2021-01-14 09:31:59 +00:00
test_gestures.cpp replace all uses of QScopedPointer with std::unique_ptr 2022-08-04 12:30:09 +00:00
test_utils.cpp utils: Introduce RamFile class for memfd 2022-08-19 15:26:22 +02:00
test_virtual_desktops.cpp x11: Hard-code 0 default screen 2022-07-20 11:37:57 +00:00
test_window_paint_data.cpp Make WindowItem handle opacity 2022-05-11 09:42:35 +00:00
test_x11_timestamp_update.cpp Make backends part of libkwin 2022-07-23 11:52:42 +00:00
test_xcb_size_hints.cpp Use floating geometry throughout 2022-07-14 10:04:46 +01:00
test_xcb_window.cpp replace all uses of QScopedPointer with std::unique_ptr 2022-08-04 12:30:09 +00:00
test_xcb_wrapper.cpp Rename AbstractClient to Window 2022-04-22 17:39:12 +00:00
test_xkb.cpp Run clang-format 2022-03-25 13:25:15 +02:00
testutils.h Run clang-format 2022-03-25 13:25:15 +02:00
xcb_scaling_mock.cpp Ensure size is valid after maximising 2022-07-27 08:43:23 +00:00