kwin/autotests
Vlad Zahorodnii a9ad59b32a Improve Workspace::outputAt()
Workspace::outputAt() casts vectors to four rectangle corners and uses
the shortest one to decide which output is the closest to the given
point.

This works poorly on dual monitor setups where on the left side you have
a monitor with landscape orientation and one with portrait orientation
on the right hand side. In that case, outputAt() will prefer the left
monitor even though the right monitor is the closest one if you cast a
perpendicular from the given point to the right monitor.

In order to improve the handling of that case, this change makes
Workspace::outputAt() compute the closest point to the output geometry
rectangle and use the squared distance as the score.
2023-03-25 21:24:59 +00:00
..
drm backends/drm: restrict common mode generation to drivers that support scaling 2023-03-25 18:52:15 +01:00
integration Improve Workspace::outputAt() 2023-03-25 21:24:59 +00:00
libinput Port to KF6 2023-02-28 18:30:26 +02:00
libkwineffects Remove some include_directories() 2023-03-23 14:37:48 +02:00
CMakeLists.txt tabbox: Drop TabBoxClient 2023-03-25 20:46:54 +00:00
onscreennotificationtest.cpp build: Add -Wno-unused-parameter compiler option 2022-10-31 15:50:37 +00:00
onscreennotificationtest.h Run clazy with qt-keywords fixit 2021-06-08 10:49:42 +03:00
opengl_context_attribute_builder_test.cpp Prefix more kwineffects includes with libkwineffects/ 2023-03-25 21:05:12 +00:00
test_client_machine.cpp Remove Qt 5 specific code 2023-02-28 18:30:26 +02:00
test_ftrace.cpp Add ftrace markers 2021-01-14 09:31:59 +00:00
test_gestures.cpp gesture: use the global direction enums 2023-02-02 16:21:36 +00:00
test_utils.cpp test_utils: Test whether mmap PROT_WRITE fails 2022-10-24 19:02:36 +02:00
test_virtual_desktops.cpp Make VirtualDesktopManager::currentChanged pass VirtualDesktop 2023-02-25 21:22:40 +00:00
test_window_paint_data.cpp Remove some include_directories() 2023-03-23 14:37:48 +02:00
test_x11_timestamp_update.cpp Remove Qt 5 specific code 2023-02-28 18:30:26 +02:00
test_xcb_size_hints.cpp Remove Qt 5 specific code 2023-02-28 18:30:26 +02:00
test_xcb_window.cpp Remove Qt 5 specific code 2023-02-28 18:30:26 +02:00
test_xcb_wrapper.cpp Remove Qt 5 specific code 2023-02-28 18:30:26 +02:00
test_xkb.cpp Remove Qt 5 specific code 2023-02-28 18:30:26 +02:00
testutils.h Remove some include_directories() 2023-03-23 14:37:48 +02:00
xcb_scaling_mock.cpp Ensure size is valid after maximising 2022-07-27 08:43:23 +00:00