WindowServer: Implement window resizing

windows can now set resizable attribute which allows window server to
resize them
This commit is contained in:
2025-05-05 03:14:50 +03:00
parent fcfadd7c74
commit 7798145c74
4 changed files with 106 additions and 22 deletions

View File

@@ -50,6 +50,7 @@ public:
void sync();
Rectangle cursor_area() const;
Rectangle resize_area(Position cursor) const;
void add_client_fd(int fd);
void remove_client_fd(int fd);
@@ -87,6 +88,9 @@ private:
BAN::RefPtr<Window> m_focused_window;
Position m_cursor;
bool m_is_resizing_window { false };
Position m_resize_start;
bool m_is_mouse_captured { false };
bool m_deleted_window { false };