kwin/plugins/platforms/drm
Martin Gräßlin cd9a0afafa [platforms/drm] Properly handle case that mapping the blank buffer fails
Summary:
If it's not possible to create a buffer to blank the output, KWin won't
be able to render to the output. In that case the output should not be
added to the list of outputs.

To support this DrmOutput::blank and DrmOutput::init return bool to
indicate whether they succeeded. DrmBackend handles this situation and
doesn't add the output to the list of outputs if init failed.

If after init there are no outputs KWin is in a state where it won't
be functional. Thus the platform emits the initFailed signal to
terminate.

BUG: 365242
FIXED-IN: 5.7.2

Test Plan: No hardware to reproduce the condition

Reviewers: #kwin, #plasma_on_wayland

Subscribers: plasma-devel, kwin

Tags: #plasma_on_wayland, #kwin

Differential Revision: https://phabricator.kde.org/D2135
2016-07-13 09:37:38 +02:00
..
CMakeLists.txt
drm.json
drm_backend.cpp [platforms/drm] Properly handle case that mapping the blank buffer fails 2016-07-13 09:37:38 +02:00
drm_backend.h [platforms/drm] Only show cursor if a pointer device is available 2016-05-25 12:14:00 +02:00
drm_buffer.cpp
drm_buffer.h
drm_inputeventfilter.cpp
drm_inputeventfilter.h
drm_output.cpp [platforms/drm] Properly handle case that mapping the blank buffer fails 2016-07-13 09:37:38 +02:00
drm_output.h [platforms/drm] Properly handle case that mapping the blank buffer fails 2016-07-13 09:37:38 +02:00
drm_pointer.h
egl_gbm_backend.cpp
egl_gbm_backend.h
logging.cpp
logging.h
scene_qpainter_drm_backend.cpp [plugins/drm] Drop dependency on VirtualTerminal 2016-04-22 14:18:56 +02:00
scene_qpainter_drm_backend.h add override to bufferForScreen 2016-05-02 14:50:23 +02:00
screens_drm.cpp
screens_drm.h