LibGUI/WindowServer: Implement per-window cursor hiding

This commit is contained in:
2025-06-27 14:09:58 +03:00
parent 7dcf1797e9
commit 273e9bbc92
4 changed files with 19 additions and 7 deletions

View File

@@ -234,6 +234,7 @@ namespace LibGUI
bool alpha_channel;
bool resizable;
bool shown;
bool cursor_visible;
};
DEFINE_PACKET(

View File

@@ -26,6 +26,7 @@ namespace LibGUI
.alpha_channel = false,
.resizable = false,
.shown = true,
.cursor_visible = true,
};
public:
@@ -48,6 +49,8 @@ namespace LibGUI
void set_position(int32_t x, int32_t y);
void set_cursor_visible(bool visible);
Attributes get_attributes() const { return m_attributes; }
void set_attributes(Attributes attributes);