kwin/autotests
David Edmundson 7292af3d04 Use floating geometry throughout
With fractional scaling integer based logical geometry may not match
device pixels. Once we have a floating point base we can fix that. This
also is
important for our X11 scale override, with a scale of 2 we could
get logical sizes with halves.

We already have all input being floating point, this doubles down on it
for all remaining geometry.

- Outputs remain integer to ensure that any screen on the right remains
aligned.
 - Placement also remains integer based for now.
- Repainting is untouched as we always expand outwards
 			   (QRectF::toAdjustedRect().
 - Decoration is untouched for now
 - Rules are integer in the config, but floating in the adjusting/API
This should also be fine.

At some point we'll add a method to snap to the device pixel
grid. Effectively `round(value * dpr)  / dpr` though right now things
mostly work.

This also gets rid of a lot of hacks for QRect right and bottom which
are very
confusing.

Parts to watch out in the port are:
 QRectF::contains now includes edges
QRectF::right and bottom are now sane so previous hacks have to be
removed
 QRectF(QPoint, QPoint) behaves differently for the same reason
 QRectF::center too

In test results some adjusted values which are the result of
QRect.center because using QRectF's center should behave the same to the
user.
2022-07-14 10:04:46 +01:00
..
integration Use floating geometry throughout 2022-07-14 10:04:46 +01:00
libinput libinput: use std::unique_ptr for events 2022-06-21 17:50:49 +00:00
libkwineffects Make TimeLine API ergonomic with presentation timestamps 2022-05-26 17:10:07 +00:00
tabbox Introduced a new setting for the task switcher - OrderMinimizedMode - and implemented the tabbox logic for it 2022-06-14 07:57:01 +00:00
CMakeLists.txt kwineffects: Strip ScreenPaintData of transforms 2022-07-06 11:10:54 +00:00
onscreennotificationtest.cpp Run clang-format 2022-03-25 13:25:15 +02:00
onscreennotificationtest.h
opengl_context_attribute_builder_test.cpp Run clang-format 2022-03-25 13:25:15 +02:00
test_client_machine.cpp Run clang-format 2022-03-25 13:25:15 +02:00
test_ftrace.cpp
test_gestures.cpp Run clang-format 2022-03-25 13:25:15 +02:00
test_virtual_desktops.cpp Make touchscreen gestures realtime 2022-05-11 15:08:43 +00:00
test_window_paint_data.cpp Make WindowItem handle opacity 2022-05-11 09:42:35 +00:00
test_x11_timestamp_update.cpp Run clang-format 2022-03-25 13:25:15 +02:00
test_xcb_size_hints.cpp Use floating geometry throughout 2022-07-14 10:04:46 +01:00
test_xcb_window.cpp Run clang-format 2022-03-25 13:25:15 +02:00
test_xcb_wrapper.cpp Rename AbstractClient to Window 2022-04-22 17:39:12 +00:00
test_xkb.cpp Run clang-format 2022-03-25 13:25:15 +02:00
testutils.h Run clang-format 2022-03-25 13:25:15 +02:00
xcb_scaling_mock.cpp Use floating geometry throughout 2022-07-14 10:04:46 +01:00