1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:48:10 +00:00
serenity/Userland/Services/WindowServer
creator1creeper1 19d9d5bfe1 Everywhere: Mark Vector of mutable references as mutable
The point of a reference type is to behave just like the referred-to
type. So, a Foo& should behave just like a Foo.

In these cases, we had a const Vector. If it was a const Vector of Foo,
iterating over the Vector would only permit taking const references to
the individual Foos.

However, we had a const Vector of Foo&. The behavior should not
change. We should still only be permitted to take const references to
the individual Foos. Otherwise, we would be allowed to mutate the
individual Foos, which would mutate the elements of the const Vector.
This wouldn't modify the stored pointers, but it would modify the
objects that the references refer to. Since references should be
transparent, this should not be legal.

So it should be impossible to get mutable references into a const
Vector. Since we need mutable references in these cases to call the
mutating member functions, we need to mark the Vector as mutable as
well.
2022-01-16 00:38:21 +03:30
..
Animation.cpp WindowServer: Fix animations not triggering rendering 2021-06-29 10:03:53 +02:00
Animation.h WindowServer: Change animation time to duration 2021-06-28 22:29:39 +02:00
AppletManager.cpp WindowServer: Fix menu over-drawing 2021-07-18 23:55:13 +02:00
AppletManager.h Services: Fix visibility of Object-derivative constructors 2021-11-02 22:56:53 +01:00
Button.cpp Everywhere: Rename left/right-click to primary/secondary 2021-10-27 22:05:58 +03:00
Button.h Everywhere: Rename left/right-click to primary/secondary 2021-10-27 22:05:58 +03:00
ClientConnection.cpp LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
ClientConnection.h LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
CMakeLists.txt WindowServer: Port to LibMain :^) 2021-11-22 23:52:47 +01:00
Compositor.cpp Userland: Cast unused BackgroundAction::construct() results to void 2021-12-05 15:31:03 +01:00
Compositor.h Compositor: Add API to get the color of a pixel 2021-09-11 19:05:46 +02:00
Cursor.cpp Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
Cursor.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
Event.h Everywhere: Rename back-click to backward-click 2021-10-27 22:05:58 +03:00
EventLoop.cpp LibIPC: Add IPC::MultiServer convenience class 2021-12-06 19:22:16 +01:00
EventLoop.h LibIPC: Add IPC::MultiServer convenience class 2021-12-06 19:22:16 +01:00
HitTestResult.h WindowServer: Make hit test results richer 2021-06-18 17:40:05 +02:00
main.cpp WindowServer: Tighten pledged promises 2022-01-03 15:56:41 +01:00
Menu.cpp WindowServer: Ensure menu visibility after pushing menu to the stack 2021-11-13 00:38:36 +01:00
Menu.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
Menubar.cpp LibGUI, WindowServer: Greatly simplify menubar logic 2021-08-02 00:39:15 +02:00
Menubar.h LibGUI+WindowServer: Flash menubar menu when using a keyboard shortcut 2022-01-09 00:54:46 +01:00
MenuItem.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
MenuItem.h WindowServer: Fix a handful of clang-tidy warnings in the menu code 2021-05-09 15:47:21 +02:00
MenuManager.cpp Everywhere: Mark Vector of mutable references as mutable 2022-01-16 00:38:21 +03:30
MenuManager.h Everywhere: Mark Vector of mutable references as mutable 2022-01-16 00:38:21 +03:30
MultiScaleBitmaps.cpp Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
MultiScaleBitmaps.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
Overlays.cpp LibGfx: Use ErrorOr<T> for Bitmap::try_create() 2021-11-08 00:35:27 +01:00
Overlays.h WindowServer: Add basic virtual desktop support 2021-07-03 12:27:23 +02:00
Screen.cpp Everywhere: Fix spelling of "offsetted" 2021-11-21 20:22:48 +01:00
Screen.h WindowServer: Remove Screen::init() 2021-10-26 01:00:54 +02:00
ScreenLayout.cpp WindowServer: Add API to set/get screen layouts 2021-06-20 14:57:26 +02:00
ScreenLayout.h LibIPC+IPCCompiler+AK: Make IPC value decoders return ErrorOr<void> 2021-11-28 23:14:19 +01:00
ScreenLayout.ipp WindowServer: Fix loading MainScreen setting from configuration 2022-01-04 06:31:59 +00:00
Window.cpp Base+WindowServer: Add icon to window menu move action 2022-01-12 10:55:04 +01:00
Window.h WindowServer: Replace "Pin/Unpin Window" => "Always on Top" 2021-11-13 12:48:43 +01:00
WindowClient.ipc Everywhere: Replace "virtual desktop" => "workspace" 2021-11-13 12:48:43 +01:00
WindowFrame.cpp LibGUI+WindowServer: Flash menubar menu when using a keyboard shortcut 2022-01-09 00:54:46 +01:00
WindowFrame.h WindowServer: Make WindowFrame::shadow_bitmap() const 2021-11-14 12:23:04 +01:00
WindowManager.cpp Everywhere: Fix many spelling errors 2022-01-07 10:56:59 +01:00
WindowManager.h WindowServer: Replace "Pin/Unpin Window" => "Always on Top" 2021-11-13 12:48:43 +01:00
WindowManagerClient.ipc Everywhere: Replace "virtual desktop" => "workspace" 2021-11-13 12:48:43 +01:00
WindowManagerServer.ipc Everywhere: Replace "virtual desktop" => "workspace" 2021-11-13 12:48:43 +01:00
WindowServer.ipc LibGUI+WindowServer: Flash menubar menu when using a keyboard shortcut 2022-01-09 00:54:46 +01:00
WindowStack.cpp WindowServer: Replace "Pin/Unpin Window" => "Always on Top" 2021-11-13 12:48:43 +01:00
WindowStack.h WindowServer: Replace "Pin/Unpin Window" => "Always on Top" 2021-11-13 12:48:43 +01:00
WindowSwitcher.cpp WindowServer: Skip over destroyed windows in WindowSwitcher::draw() 2021-12-25 10:41:06 +01:00
WindowSwitcher.h WindowServer: Make window switcher look more like other overlays 2021-11-14 12:23:04 +01:00
WindowType.h WindowServer: Add sanity checks to create_window IPC 2021-06-03 08:27:57 +02:00
WMClientConnection.cpp LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
WMClientConnection.h LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30