kwin/autotests/wayland
Martin Gräßlin 6a19f50cac Add a debugging console to KWin
Summary:
The idea behind the debugging console is to have a feature comparable
to xprop and xwininfo just for Wayland. We cannot have command line
utils as that violates the security restrictions, thus it needs to be
exposed directly in KWin.

The debugging console is invoked through DBus:
qdbus org.kde.KWin /KWin showDebugConsole

This opens a window with a tree view. The DebugConsoleModel which is
used by the tree view groups all windows into four categories:
* x11 clients (that is Workspace::clientList() and Workspace::desktopList())
* x11 unmanaged (Workspace::unmanagedList())
* wayland shell clients (WaylandServer::clients())
* wayland internal clients (KWin's own QWindows - WaylandServer::internalClients())

Each window is a child to one of the four categories. Each window itself
has all it's QProperties exposed as children.

This allows to properly inspect KWin's internal knowledge for windows and
should make it easier to investigate problems. E.g. what's a window's
geometry, what's it's window type and so on.

The debugging console is intended as a developer tool and not expected to
be used by users. That's why it's invokation is rather hidden. Due to
the fact that it's internal to KWin it results in:
* no window decoration
* stealing keyboard focus
* no way to resize, close, move from KWin side
* rendered above all other windows

There is a dedicated close button to get rid of it again. While the
console is shown it's hardly possible to interact with the system in
a normal way anymore. This is something which might be improved in
future.

At the moment the model is able to update when windows are added/removed,
but not yet when a property changes. Due to the lack of interaction with
the existing system, that's not a high priority at the moment, but can
be added in future.

Reviewers: #plasma

Differential Revision: https://phabricator.kde.org/D1146
2016-03-16 14:30:19 +01: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 Add a debugging console to KWin 2016-03-16 14:30:19 +01:00
debug_console_test.cpp Add a debugging console to KWin 2016-03-16 14:30:19 +01: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_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
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
lockscreen.cpp [autotest] Fix build on build.kde.org (Try 3) 2016-03-03 16:26:55 +01:00
move_resize_window_test.cpp Map all pointer buttons to Qt::MouseButton 2016-02-17 11:16:57 +01:00
platformcursor.cpp [plugins/qpa] Implement a custom QPlatformCursor 2016-02-17 12:42:12 +01:00
pointer_input.cpp [autotests] Specify XCUROSR_THEME and XCURSOR_SIZE in pointer input test 2016-02-25 13:53:23 +01:00
quick_tiling_test.cpp
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
transient_placement.cpp Implement sanity checks when placing transients 2016-03-03 15:57:55 +01:00