LibGUI/WindowServer: Rename mouse capture -> mouse relative

My terminology was incorrect and this is more correct
This commit is contained in:
2025-08-03 16:13:37 +03:00
parent 4519c48284
commit af0a46e79c
6 changed files with 31 additions and 31 deletions

View File

@@ -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__);