mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:58:11 +00:00

With this patch the window manager related functionality is split out onto a new endpoint pair named WindowManagerServer/Client. This allows window manager functionality to be potentially privilege separated in the future. To this end, a new client named WMConnectionClient is used to maintain a window manager connection. When a process connects to the endpoint and greets the WindowServer as a window manager (via Window::make_window_manager(int)), they're subscribed to the events they requested via the WM event mask. This patch also removes the hardcoding of the Taskbar WindowType to receive WM events automatically. However, being a window manager still requires having an active window, at the moment.
32 lines
847 B
CMake
32 lines
847 B
CMake
compile_ipc(WindowServer.ipc WindowServerEndpoint.h)
|
|
compile_ipc(WindowClient.ipc WindowClientEndpoint.h)
|
|
compile_ipc(WindowManagerServer.ipc WindowManagerServerEndpoint.h)
|
|
compile_ipc(WindowManagerClient.ipc WindowManagerClientEndpoint.h)
|
|
|
|
set(SOURCES
|
|
AppletManager.cpp
|
|
Button.cpp
|
|
ClientConnection.cpp
|
|
Compositor.cpp
|
|
Cursor.cpp
|
|
EventLoop.cpp
|
|
main.cpp
|
|
Menubar.cpp
|
|
Menu.cpp
|
|
MenuItem.cpp
|
|
MenuManager.cpp
|
|
Screen.cpp
|
|
Window.cpp
|
|
WindowFrame.cpp
|
|
WindowManager.cpp
|
|
WindowSwitcher.cpp
|
|
WindowServerEndpoint.h
|
|
WindowClientEndpoint.h
|
|
WindowManagerServerEndpoint.h
|
|
WindowManagerClientEndpoint.h
|
|
WMClientConnection.cpp
|
|
)
|
|
|
|
serenity_bin(WindowServer)
|
|
target_link_libraries(WindowServer LibCore LibGfx LibThread LibPthread LibIPC)
|
|
serenity_install_headers(Services/WindowServer)
|