ladybird/Userland/Services/WindowServer
Jelle Raaijmakers f391ccfe53 LibGfx+Everywhere: Change Gfx::Rect to be endpoint exclusive
Previously, calling `.right()` on a `Gfx::Rect` would return the last
column's coordinate still inside the rectangle, or `left + width - 1`.
This is called 'endpoint inclusive' and does not make a lot of sense for
`Gfx::Rect<float>` where a rectangle of width 5 at position (0, 0) would
return 4 as its right side. This same problem exists for `.bottom()`.

This changes `Gfx::Rect` to be endpoint exclusive, which gives us the
nice property that `width = right - left` and `height = bottom - top`.
It enables us to treat `Gfx::Rect<int>` and `Gfx::Rect<float>` exactly
the same.

All users of `Gfx::Rect` have been updated accordingly.
2023-05-23 12:35:42 +02:00
..
Animation.cpp WindowServer: Only register animations when they're running 2023-04-13 20:18:49 +02:00
Animation.h WindowServer: Only register animations when they're running 2023-04-13 20:18:49 +02:00
AppletManager.cpp WindowServer: Only load /etc/WindowServer.ini once and keep it loaded 2023-01-03 15:25:02 +01:00
AppletManager.h Meta+Userland: Pass Gfx::IntPoint by value 2022-12-07 11:48:27 +01:00
Button.cpp WindowServer: Fix crash when hovering over title buttons 2022-05-18 19:05:18 +02:00
Button.h WindowServer: Support hover icons for title buttons 2022-05-03 22:00:14 +02:00
CMakeLists.txt WindowServer: Fix alt shortcut navigation for non-default keymaps 2023-04-14 12:38:40 +01:00
Compositor.cpp WindowServer: Draw stretched wallpapers with bilinear blending 2023-04-25 22:37:57 +02:00
Compositor.h WindowServer: Fix some gliches when overlays are moved or removed 2023-04-13 20:18:49 +02:00
ConnectionFromClient.cpp WindowServer: Catch more Window stealing misbehavior 2023-05-15 12:15:39 +02:00
ConnectionFromClient.h WindowServer+LibGUI: Port WindowServer's Menu name to new String 2023-04-19 07:59:54 +02:00
Cursor.cpp WindowServer: Fix various const-correctness issues 2023-02-21 00:54:04 +01:00
Cursor.h WindowServer: Fix various const-correctness issues 2023-02-21 00:54:04 +01:00
Event.h Meta+Userland: Pass Gfx::IntPoint by value 2022-12-07 11:48:27 +01:00
EventLoop.cpp LibCore: Simplify Core::Notifier by only allowing one event type 2023-04-25 14:48:40 +02:00
EventLoop.h Services: Use default constructors/destructors 2022-03-24 20:09:26 -07:00
HardwareScreenBackend.cpp Everywhere: Use ReadonlySpan<T> instead of Span<T const> 2023-02-08 19:15:45 +00:00
HardwareScreenBackend.h Everywhere: Use ReadonlySpan<T> instead of Span<T const> 2023-02-08 19:15:45 +00:00
HitTestResult.h WindowServer: Make hit test results richer 2021-06-18 17:40:05 +02:00
KeymapSwitcher.cpp WindowServer: Prefer File::read_until_eof over DeprecatedFile::read_all 2023-05-19 21:36:37 +02:00
KeymapSwitcher.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
main.cpp WindowServer: Fix alt shortcut navigation for non-default keymaps 2023-04-14 12:38:40 +01:00
Menu.cpp LibGfx+Everywhere: Change Gfx::Rect to be endpoint exclusive 2023-05-23 12:35:42 +02:00
Menu.h WindowServer+LibGUI: Port WindowServer's Menu name to new String 2023-04-19 07:59:54 +02:00
Menubar.cpp LibGfx+LibGUI+WindowServer+Apps+Demos: Replace ToolWindows 2022-08-25 13:28:50 +02:00
Menubar.h WindowServer: Do not add existing menu items (by ptr) to m_menus 2023-01-07 19:57:57 +00:00
MenuItem.cpp LibGUI+WindowServer: Add "visible" state to GUI actions 2022-12-10 14:28:38 +01:00
MenuItem.h WindowServer: Fix various const-correctness issues 2023-02-21 00:54:04 +01:00
MenuManager.cpp LibGfx+Everywhere: Change Gfx::Rect to be endpoint exclusive 2023-05-23 12:35:42 +02:00
MenuManager.h LibGUI+WindowServer: Notify Windows on input preemption 2022-09-08 23:21:54 +01:00
MultiScaleBitmaps.cpp LibGfx: Remove try_ prefix from bitmap creation functions 2023-01-26 20:24:37 +00:00
MultiScaleBitmaps.h WindowServer: Fix crash when hovering over title buttons 2022-05-18 19:05:18 +02:00
Overlays.cpp WindowServer: Refactor window geometry overlay rect calculation logic 2023-04-13 20:18:49 +02:00
Overlays.h WindowServer: Refactor window geometry overlay rect calculation logic 2023-04-13 20:18:49 +02:00
ResizeDirection.h WindowServer+LibGUI: Shrink window edge resize hot-spots 2022-10-11 17:48:48 +02:00
Screen.cpp LibGfx+WindowServer: Ensure constrain-to-rect ends up inside the rect 2023-05-06 22:04:46 +02:00
Screen.h Everywhere: Remove NonnullRefPtr.h includes 2023-03-06 23:46:35 +01:00
ScreenBackend.h Everywhere: Use ReadonlySpan<T> instead of Span<T const> 2023-02-08 19:15:45 +00:00
ScreenLayout.cpp WindowServer: Add API to set/get screen layouts 2021-06-20 14:57:26 +02:00
ScreenLayout.h LibIPC+Everywhere: Change IPC::encode's return type to ErrorOr 2023-01-04 11:49:15 +01:00
ScreenLayout.ipp LibGfx+Everywhere: Change Gfx::Rect to be endpoint exclusive 2023-05-23 12:35:42 +02:00
SystemEffects.h WindowServer: Implement tile window overlay 2023-04-13 20:18:49 +02:00
VirtualScreenBackend.cpp WindowServer: Fallback to safe mode-setting in case of mapping overflow 2022-09-24 15:38:56 +01:00
VirtualScreenBackend.h Everywhere: Remove unused DeprecatedString includes 2023-04-09 22:00:54 +02:00
Window.cpp LibGfx+Everywhere: Change Gfx::Rect to be endpoint exclusive 2023-05-23 12:35:42 +02:00
Window.h WindowServer: Implement tile window overlay 2023-04-13 20:18:49 +02:00
WindowClient.ipc AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
WindowFrame.cpp LibGfx+Everywhere: Change Gfx::Rect to be endpoint exclusive 2023-05-23 12:35:42 +02:00
WindowFrame.h WindowServer: Implement tile window overlay 2023-04-13 20:18:49 +02:00
WindowManager.cpp LibGfx+Everywhere: Change Gfx::Rect to be endpoint exclusive 2023-05-23 12:35:42 +02:00
WindowManager.h WindowServer: Move window geometry label into the tile overlay area 2023-04-13 20:18:49 +02:00
WindowManagerClient.ipc AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
WindowManagerServer.ipc AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
WindowMode.h WindowServer: Catch more Window stealing misbehavior 2023-05-15 12:15:39 +02:00
WindowServer.ipc WindowServer+LibGUI: Port WindowServer's Menu name to new String 2023-04-19 07:59:54 +02:00
WindowStack.cpp Meta+Userland: Pass Gfx::IntPoint by value 2022-12-07 11:48:27 +01:00
WindowStack.h Meta+Userland: Pass Gfx::IntPoint by value 2022-12-07 11:48:27 +01:00
WindowSwitcher.cpp LibGfx+Everywhere: Change Gfx::Rect to be endpoint exclusive 2023-05-23 12:35:42 +02:00
WindowSwitcher.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
WindowType.h LibGUI+WindowServer: Add WindowType:Autocomplete and helpers 2022-11-19 16:04:42 +01:00
WMConnectionFromClient.cpp LibCore: Move Stream-based sockets into the Core namespace 2023-02-13 00:50:07 +00:00
WMConnectionFromClient.h LibCore: Move Stream-based sockets into the Core namespace 2023-02-13 00:50:07 +00:00