kwin/autotests
Martin Flöser abedb464d5 [QPA] Implement Screen on top of internal Screens API
Summary:
The test DontCrashUseractionsMenu (Waylandonly) found an issue in our
screen handling implementation in the QPA. The code exposed a short time
frame between the dummy screen getting destroyed and the first screen
being added. This could result in a crash of KWin.

There is actually no need to implement Screen on top of Wayland screen.
KWin has all the knowledge, so we can also base this on top of the
Screens API.

Advantages:
 * no delays due to Wayland roundtrips
 * handle screen getting removed (was a TODO)
 * handle resolution changes (was a TODO)

The new implementation has a disadvantage that it destroys and readds
all screens whenever something around the screen changes. This shouldn't
be an issue in practice as it's only for the internal QPA and thus only
affects KWin internal windows which is placed in global coordinates
anyway. If it turns out to be a problem we need to track better the
screen changes - so far those were not tracked at all.

Test Plan: Run a few unit tests which change screens

Reviewers: #kwin, #plasma

Subscribers: plasma-devel, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D8345
2017-10-19 18:03:10 +02:00
..
integration [QPA] Implement Screen on top of internal Screens API 2017-10-19 18:03:10 +02:00
libinput Fix TouchEvent::id() returning -1, fixes a crash 2017-09-19 07:11:40 +03:00
libkwineffects
libxrenderutils [autotests] Fix unused function warnings 2017-07-29 18:47:58 +02:00
tabbox Fix: Missing dependencies for kwin autotests 2017-10-04 10:12:06 +01:00
abstract_client.h
client.h
CMakeLists.txt Add DBus protocol to virtual keyboard 2017-10-19 17:59:19 +02:00
fakeeffectplugin.cpp
fakeeffectplugin.json
fakeeffectplugin_version.cpp
fakeeffectplugin_version.json
mock_abstract_client.cpp
mock_abstract_client.h
mock_client.cpp
mock_client.h
mock_effectshandler.cpp
mock_effectshandler.h
mock_screens.cpp
mock_screens.h
mock_workspace.cpp
mock_workspace.h Move XRandR event filter into XRandRScreens 2017-09-12 18:53:08 +02:00
onscreennotificationtest.cpp Fade out OnScreenNotification when moving with the mouse over it 2017-01-04 18:04:15 +01:00
onscreennotificationtest.h
opengl_context_attribute_builder_test.cpp
test_builtin_effectloader.cpp
test_client_machine.cpp
test_gbm_surface.cpp Fix DRM EGL crash regression 2017-10-11 20:04:13 +02:00
test_gestures.cpp
test_plugin_effectloader.cpp
test_screen_edges.cpp Move X11 specific event filtering for ScreenEdges into x11 standalone platform 2017-09-01 17:01:01 +02:00
test_screen_paint_data.cpp
test_screens.cpp
test_scripted_effectloader.cpp Port some displayWidth/displayHeight usages to Screens::size() 2017-09-01 17:11:10 +02:00
test_virtual_desktops.cpp
test_virtualkeyboard_dbus.cpp Add DBus protocol to virtual keyboard 2017-10-19 17:59:19 +02:00
test_window_paint_data.cpp
test_x11_timestamp_update.cpp [autotests] Fix testX11TimestampUpdate after latest change 2017-08-24 21:48:29 +02:00
test_xcb_size_hints.cpp
test_xcb_window.cpp
test_xcb_wrapper.cpp
test_xkb.cpp Support mapping QKeyEvent to xkb_keysym_t 2017-09-19 19:09:17 +02:00
test_xrandr_screens.cpp
testutils.h
workspace.h