1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:07:36 +00:00

WindowServer: Add WSClientConnection class to manage an individual client.

This makes both object lifetimes and object ID's a lot easier to understand.
This commit is contained in:
Andreas Kling 2019-02-14 08:22:47 +01:00
parent f529b845ec
commit aa7947c889
11 changed files with 452 additions and 383 deletions

View file

@ -66,6 +66,7 @@ WINDOWSERVER_OBJS = \
../WindowServer/WSMenuBar.o \
../WindowServer/WSMenu.o \
../WindowServer/WSMenuItem.o \
../WindowServer/WSClientConnection.o \
../WindowServer/main.o
AK_OBJS = \

View file

@ -20,6 +20,7 @@ void Process::destroy_all_windows()
{
if (!WSMessageLoop::the().running())
return;
dbgprintf("Sending death notification for client_id %d\n", gui_client_id());
WSMessageLoop::the().notify_client_died(gui_client_id());
}