LibGUI/WindowServer: Rename mouse capture -> mouse relative
My terminology was incorrect and this is more correct
This commit is contained in:
@@ -142,10 +142,10 @@ namespace LibGUI
|
||||
return on_socket_error(__FUNCTION__);
|
||||
}
|
||||
|
||||
void Window::set_mouse_capture(bool captured)
|
||||
void Window::set_mouse_relative(bool enabled)
|
||||
{
|
||||
WindowPacket::WindowSetMouseCapture packet;
|
||||
packet.captured = captured;
|
||||
WindowPacket::WindowSetMouseRelative packet;
|
||||
packet.enabled = enabled;
|
||||
|
||||
if (auto ret = packet.send_serialized(m_server_fd); ret.is_error())
|
||||
return on_socket_error(__FUNCTION__);
|
||||
|
||||
@@ -205,7 +205,7 @@ namespace LibGUI
|
||||
WindowInvalidate,
|
||||
WindowSetPosition,
|
||||
WindowSetAttributes,
|
||||
WindowSetMouseCapture,
|
||||
WindowSetMouseRelative,
|
||||
WindowSetSize,
|
||||
WindowSetMinSize,
|
||||
WindowSetMaxSize,
|
||||
@@ -266,8 +266,8 @@ namespace LibGUI
|
||||
);
|
||||
|
||||
DEFINE_PACKET(
|
||||
WindowSetMouseCapture,
|
||||
bool, captured
|
||||
WindowSetMouseRelative,
|
||||
bool, enabled
|
||||
);
|
||||
|
||||
DEFINE_PACKET(
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace LibGUI
|
||||
void invalidate(int32_t x, int32_t y, uint32_t width, uint32_t height);
|
||||
void invalidate() { return invalidate(0, 0, width(), height()); }
|
||||
|
||||
void set_mouse_capture(bool captured);
|
||||
void set_mouse_relative(bool enabled);
|
||||
void set_fullscreen(bool fullscreen);
|
||||
void set_title(BAN::StringView title);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user