kwin/autotests/integration
Vlad Zahorodnii b75f089981 Port Workspace::topClientOnDesktop() to VirtualDesktop
This patch has one behavioral change - raiseOrLowerClient() will not
work if the client is not on the current virtual desktop.

However, raiseOrLowerClient() can be called only in two cases:

* user triggers the raise or lower shortcut for the active client. Since
  the active client is on the current virtual desktop, it's not an issue

* an x11 window restacks itself. It makes no sense if an x11 window
  restacks itself while it's inactive or not on current virtual desktop.
  Also, the Opposite restack mode is rarely used, some window managers
  don't even bother implementing it. So, having such a constraint should
  not be a problem.

The main reason for not allowing raiseOrLowerClient() for windows that
are not on the current virtual desktop is that a window can be on
multiple virtual desktops. If a window is on A and B virtual desktops,
the only logical option is to toggle stacking position if the window is
on the current desktop. It's the only viable option as kwin does not
maintain per virtual desktop stacking order.
2021-08-17 06:23:52 +00:00
..
data Prettify license headers 2020-08-07 19:57:56 +00:00
effects Remove virtualdesktops.h include in toplevel.h 2021-08-12 17:23:15 +00:00
fakes Use versionless Qt cmake target 2021-01-30 17:18:21 +01:00
helper Use versionless Qt cmake target 2021-01-30 17:18:21 +01:00
protocols Implement the layer-shell v1 protocol 2020-09-03 18:11:44 +00:00
scripting autotests: Port the tests to new xdg-shell helpers 2021-05-11 05:26:51 +00:00
activation_test.cpp autotests: Stabilize ActivationTest::testSwitchToWindowMaximized 2021-05-12 20:44:28 +03:00
activities_test.cpp Ensure we start our tests with wayland already initialised 2021-05-10 12:33:43 +00:00
buffer_size_change_test.cpp autotests: Port the tests to new xdg-shell helpers 2021-05-11 05:26:51 +00:00
CMakeLists.txt autotests: Remove SceneOpenGLShadowTest 2021-06-11 06:03:08 +00:00
dbus_interface_test.cpp Rework async geometry updates 2021-05-25 06:17:41 +00:00
debug_console_test.cpp autotests: Port the tests to new xdg-shell helpers 2021-05-11 05:26:51 +00:00
decoration_input_test.cpp Run clazy with qt-keywords fixit 2021-06-08 10:49:42 +03:00
desktop_window_x11_test.cpp Ensure we start our tests with wayland already initialised 2021-05-10 12:33:43 +00:00
dont_crash_aurorae_destroy_deco.cpp Remove OpenGL2Compositing enum 2021-06-09 15:24:22 +00:00
dont_crash_cancel_animation.cpp autotests: Port the tests to new xdg-shell helpers 2021-05-11 05:26:51 +00:00
dont_crash_cursor_physical_size_empty.cpp Run clazy with qt-keywords fixit 2021-06-08 10:49:42 +03:00
dont_crash_empty_deco.cpp Remove OpenGL2Compositing enum 2021-06-09 15:24:22 +00:00
dont_crash_glxgears.cpp Avoid converting socket name between QString and QByteArray back and forth 2020-12-09 15:07:29 +02:00
dont_crash_no_border.cpp Remove OpenGL2Compositing enum 2021-06-09 15:24:22 +00:00
dont_crash_reinitialize_compositor.cpp Remove OpenGL2Compositing enum 2021-06-09 15:24:22 +00:00
dont_crash_useractions_menu.cpp autotests: Port the tests to new xdg-shell helpers 2021-05-11 05:26:51 +00:00
generic_scene_opengl_test.cpp Remove OpenGL2Compositing enum 2021-06-09 15:24:22 +00:00
generic_scene_opengl_test.h Prettify license headers 2020-08-07 19:57:56 +00:00
globalshortcuts_test.cpp GlobalShortcutsTest: No need to make the test longer than it needs to be 2021-05-11 12:38:00 +02:00
idle_inhibition_test.cpp Remove virtualdesktops.h include in toplevel.h 2021-08-12 17:23:15 +00:00
input_stacking_order.cpp autotests: Port the tests to new xdg-shell helpers 2021-05-11 05:26:51 +00:00
inputmethod_test.cpp inputmethod: Add a test that simulates client switching 2021-07-31 02:10:17 +02:00
internal_window.cpp Run clazy with qt-keywords fixit 2021-06-08 10:49:42 +03:00
keyboard_layout_test.cpp autotests: Port the tests to new xdg-shell helpers 2021-05-11 05:26:51 +00:00
keymap_creation_failure_test.cpp Ensure we start our tests with wayland already initialised 2021-05-10 12:33:43 +00:00
kwin_wayland_test.cpp Port from KPluginLoader::pluginsById to KPluginMetaData::pluginById 2021-07-22 22:59:13 +02:00
kwin_wayland_test.h kwin tests: Add heplers to access the input panel client and its surface 2021-07-21 13:10:30 +02:00
kwinbindings_test.cpp Rework async geometry updates 2021-05-25 06:17:41 +00:00
layershellv1client_test.cpp Ensure we start our tests with wayland already initialised 2021-05-10 12:33:43 +00:00
lockscreen.cpp Remove OpenGL2Compositing enum 2021-06-09 15:24:22 +00:00
maximize_test.cpp autotests: Port the tests to new xdg-shell helpers 2021-05-11 05:26:51 +00:00
modifier_only_shortcut_test.cpp Run clazy with qt-keywords fixit 2021-06-08 10:49:42 +03:00
move_resize_window_test.cpp Rework async geometry updates 2021-05-25 06:17:41 +00:00
nightcolor_test.cpp Ensure we start our tests with wayland already initialised 2021-05-10 12:33:43 +00:00
no_global_shortcuts_test.cpp Run clazy with qt-keywords fixit 2021-06-08 10:49:42 +03:00
no_xdg_runtime_dir_test.cpp Avoid converting socket name between QString and QByteArray back and forth 2020-12-09 15:07:29 +02:00
outputmanagement_test.cpp Rework async geometry updates 2021-05-25 06:17:41 +00:00
placement_test.cpp autotests: Port the tests to new xdg-shell helpers 2021-05-11 05:26:51 +00:00
plasma_surface_test.cpp autotests: Port the tests to new xdg-shell helpers 2021-05-11 05:26:51 +00:00
plasmawindow_test.cpp autotests: Stabilize tests that create Xwayland windows 2021-05-15 16:16:48 +00:00
platformcursor.cpp Avoid converting socket name between QString and QByteArray back and forth 2020-12-09 15:07:29 +02:00
pointer_constraints_test.cpp Prepend "Interactive" to interactive move resize methods 2021-05-16 13:50:25 +03:00
pointer_input.cpp Port Workspace::topClientOnDesktop() to VirtualDesktop 2021-08-17 06:23:52 +00:00
quick_tiling_test.cpp autotests: Port the tests to new xdg-shell helpers 2021-05-11 05:26:51 +00:00
scene_opengl_es_test.cpp Prettify license headers 2020-08-07 19:57:56 +00:00
scene_opengl_test.cpp Prettify license headers 2020-08-07 19:57:56 +00:00
scene_qpainter_test.cpp wayland: Switch to ClientBuffer 2021-07-23 15:33:38 +00:00
screen_changes_test.cpp Ensure we start our tests with wayland already initialised 2021-05-10 12:33:43 +00:00
screenedge_client_show_test.cpp Rework async geometry updates 2021-05-25 06:17:41 +00:00
screens_test.cpp autotests: Port the tests to new xdg-shell helpers 2021-05-11 05:26:51 +00:00
shade_test.cpp Ensure we start our tests with wayland already initialised 2021-05-10 12:33:43 +00:00
showing_desktop_test.cpp autotests: Port the tests to new xdg-shell helpers 2021-05-11 05:26:51 +00:00
stacking_order_test.cpp autotests: Port the tests to new xdg-shell helpers 2021-05-11 05:26:51 +00:00
struts_test.cpp Prepend "Interactive" to interactive move resize methods 2021-05-16 13:50:25 +03:00
tabbox_test.cpp autotests: Port the tests to new xdg-shell helpers 2021-05-11 05:26:51 +00:00
test_helpers.cpp kwin tests: Add heplers to access the input panel client and its surface 2021-07-21 13:10:30 +02:00
test_virtualkeyboard_dbus.cpp autotests: Fix VirtualKeyboardDBusTest 2021-06-22 16:28:45 +03:00
touch_input_test.cpp Rework async geometry updates 2021-05-25 06:17:41 +00:00
transient_placement.cpp autotests: Port the tests to new xdg-shell helpers 2021-05-11 05:26:51 +00:00
virtual_desktop_test.cpp autotests: Port the tests to new xdg-shell helpers 2021-05-11 05:26:51 +00:00
window_rules_test.cpp autotests: Stabilize tests that create Xwayland windows 2021-05-15 16:16:48 +00:00
window_selection_test.cpp autotests: Port the tests to new xdg-shell helpers 2021-05-11 05:26:51 +00:00
x11_client_test.cpp Rework async geometry updates 2021-05-25 06:17:41 +00:00
xdgshellclient_rules_test.cpp Prepend "Interactive" to interactive move resize methods 2021-05-16 13:50:25 +03:00
xdgshellclient_test.cpp Remove virtualdesktops.h include in toplevel.h 2021-08-12 17:23:15 +00:00
xwayland_input_test.cpp Run clazy with qt-keywords fixit 2021-06-08 10:49:42 +03:00
xwayland_selections_test.cpp Ensure we start our tests with wayland already initialised 2021-05-10 12:33:43 +00:00
xwaylandserver_crash_test.cpp Ensure we start our tests with wayland already initialised 2021-05-10 12:33:43 +00:00
xwaylandserver_restart_test.cpp Ensure we start our tests with wayland already initialised 2021-05-10 12:33:43 +00:00