1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:48:11 +00:00
serenity/Userland/Services/WindowServer
sin-ack 2e1bbcb0fa LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer
This change unfortunately cannot be atomically made without a single
commit changing everything.

Most of the important changes are in LibIPC/Connection.cpp,
LibIPC/ServerConnection.cpp and LibCore/LocalServer.cpp.

The notable changes are:
- IPCCompiler now generates the decode and decode_message functions such
  that they take a Core::Stream::LocalSocket instead of the socket fd.
- IPC::Decoder now uses the receive_fd method of LocalSocket instead of
  doing system calls directly on the fd.
- IPC::ConnectionBase and related classes now use the Stream API
  functions.
- IPC::ServerConnection no longer constructs the socket itself; instead,
  a convenience macro, IPC_CLIENT_CONNECTION, is used in place of
  C_OBJECT and will generate a static try_create factory function for
  the ServerConnection subclass. The subclass is now responsible for
  passing the socket constructed in this function to its
  ServerConnection base; the socket is passed as the first argument to
  the constructor (as a NonnullOwnPtr<Core::Stream::LocalServer>) before
  any other arguments.
- The functionality regarding taking over sockets from SystemServer has
  been moved to LibIPC/SystemServerTakeover.cpp. The Core::LocalSocket
  implementation of this functionality hasn't been deleted due to my
  intention of removing this class in the near future and to reduce
  noise on this (already quite noisy) PR.
2022-01-15 13:29:48 +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 WindowServer: Ensure menu visibility after pushing menu to the stack 2021-11-13 00:38:36 +01:00
MenuManager.h Services: Fix visibility of Object-derivative constructors 2021-11-02 22:56:53 +01:00
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