kwin/autotests/wayland
Martin Gräßlin 0df4406c2c Fix crash on repainting an invalid sizes decoration
Summary:
If a window has an invalid size the decoration also has an invalid
size. This results in the texture used by the
SceneOpenGLDecorationRenderer to be invalid and being reset to null.
Of course we shouldn't try to use this texture to render to.

The change comes with a test case to simulate the situation. We cannot
simulate it with Wayland clients as the geometry can never be empty.
Thus we create an X11 client, resize it to an empty size and unmap it.

This is the first integration test case which creates an X11 Client!
It's also a test case which needs the OpenGL compositor. This will most
likely not work on build.kde.org yet - we need to see what to do about
it. Will need adjustments to get it at least skip on build.kde.org.

BUG: 361551
FIXED-IN: 5.6.3

Reviewers: #plasma

Subscribers: plasma-devel

Projects: #plasma

Differential Revision: https://phabricator.kde.org/D1383
2016-04-14 07:35:51 +02:00
..
data/anim-data-delete-effect [autotest] Don't crash when cancel animation from animationEnded in scripted effect 2016-02-17 13:59:55 +01:00
CMakeLists.txt Fix crash on repainting an invalid sizes decoration 2016-04-14 07:35:51 +02:00
decoration_input_test.cpp Fix start move through drag distance on window decoration 2016-03-11 12:48:01 +01:00
dont_crash_cancel_animation.cpp [autotest] Don't crash when cancel animation from animationEnded in scripted effect 2016-02-17 13:59:55 +01:00
dont_crash_empty_deco.cpp Fix crash on repainting an invalid sizes decoration 2016-04-14 07:35:51 +02:00
dont_crash_glxgears.cpp Revert "[autotest] Let's dare enabling the OpenGL compositor in the tests" 2016-02-12 15:22:55 +01:00
input_stacking_order.cpp [autotest] Test case for stacking order changes should change focus 2016-02-11 10:47:21 +01:00
internal_window.cpp Improve keyboard handling for internal windows 2016-02-17 13:34:24 +01:00
kwin_wayland_test.cpp Revert "[autotest] Let's dare enabling the OpenGL compositor in the tests" 2016-02-12 15:22:55 +01:00
kwin_wayland_test.h Fix typo 2016-02-11 09:34:19 +01:00
lockscreen.cpp [autotest] Fix build on build.kde.org (Try 3) 2016-03-03 16:26:55 +01:00
move_resize_window_test.cpp Ensure panel, desktop and onscreendisplay windows cannot be moved/resized 2016-03-21 16:44:46 +01:00
platformcursor.cpp [plugins/qpa] Implement a custom QPlatformCursor 2016-02-17 12:42:12 +01:00
pointer_input.cpp [autotests] Use DMZ-White as cursor theme 2016-04-05 08:36:53 +02:00
quick_tiling_test.cpp Fix typo 2016-02-11 09:34:19 +01:00
start_test.cpp Fix crash when accessing ShellClient::iconGeometry for a not mapped window 2016-03-14 10:24:13 +01:00
touch_input_test.cpp [autotests] Add test case for touch down triggers a mouse action 2016-02-18 09:57:18 +01:00
transient_no_input_test.cpp Fix typo 2016-02-11 09:34:19 +01:00
transient_placement.cpp Implement sanity checks when placing transients 2016-03-03 15:57:55 +01:00