libui: Remove the server->client message "WindowCloseRequest"
Some checks are pending
Build and test / build (push) Waiting to run

This is no longer used as the client manages its own close buttons.
This commit is contained in:
apio 2024-05-01 18:19:34 +02:00
parent fb52c67f16
commit 0a46cfc80c
Signed by: apio
GPG Key ID: B8A7D06E42258954
2 changed files with 0 additions and 16 deletions

View File

@ -19,7 +19,6 @@ namespace ui
{
IPC_ENUM_CLIENT(ui),
CREATE_WINDOW_RESPONSE_ID,
WINDOW_CLOSE_REQUEST_ID,
MOUSE_EVENT_REQUEST_ID,
MOUSE_LEAVE_REQUEST_ID,
GET_SCREEN_RECT_RESPONSE_ID,
@ -34,13 +33,6 @@ namespace ui
IPC_STRING(shm_path);
};
struct WindowCloseRequest
{
static constexpr u8 ID = WINDOW_CLOSE_REQUEST_ID;
int window;
};
struct MouseEventRequest
{
static constexpr u8 ID = MOUSE_EVENT_REQUEST_ID;

View File

@ -89,14 +89,6 @@ namespace ui
{
switch (id)
{
case WINDOW_CLOSE_REQUEST_ID: {
WindowCloseRequest request;
if (!TRY(m_client->read_message(request))) return {};
os::eprintln("ui: Window close request from server! Shall comply.");
auto* window = find_window(request.window);
window->close();
return {};
}
case MOUSE_EVENT_REQUEST_ID: {
MouseEventRequest request;
if (!TRY(m_client->read_message(request))) return {};