WindowServer: Make relative mouse no-op with absolute mouse

This commit is contained in:
Bananymous 2025-08-03 16:44:43 +03:00
parent 256c9daefd
commit ea91bdcce7
1 changed files with 6 additions and 0 deletions

View File

@ -724,6 +724,12 @@ void WindowServer::on_mouse_move_abs(LibInput::MouseMoveAbsEvent event)
return (val - in_min) * (out_max - out_min) / (in_max - in_min) + out_min; return (val - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
}; };
if (m_is_mouse_relative)
{
dwarnln("relative mouse not supported with absolute mouse");
return;
}
int32_t out_min_x, out_max_x; int32_t out_min_x, out_max_x;
int32_t out_min_y, out_max_y; int32_t out_min_y, out_max_y;