diff --git a/libui/include/ui/ipc/Client.h b/libui/include/ui/ipc/Client.h index f042d3f1..11600f64 100644 --- a/libui/include/ui/ipc/Client.h +++ b/libui/include/ui/ipc/Client.h @@ -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; diff --git a/libui/src/App.cpp b/libui/src/App.cpp index 3b21950e..ee2717c6 100644 --- a/libui/src/App.cpp +++ b/libui/src/App.cpp @@ -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 {};