[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH for 6.1 v2] ui/gtk: Fix relative mouse with multiple monitors
From: |
Gerd Hoffmann |
Subject: |
Re: [PATCH for 6.1 v2] ui/gtk: Fix relative mouse with multiple monitors |
Date: |
Fri, 23 Jul 2021 14:18:47 +0200 |
On Tue, Jul 20, 2021 at 04:39:41PM +0200, Dennis Wölfing wrote:
> To handle relative mouse input the event handler needs to move the mouse
> away from the screen edges. Failing to do so results in the mouse
> getting stuck at invisible walls. However the current implementation for
> this is broken on hosts with multiple monitors.
>
> With multiple monitors the mouse can be located outside of the current
> monitor which is not handled by the current code. Also the monitor
> itself might be located at coordinates different from (0, 0).
>
> Signed-off-by: Dennis Wölfing <denniswoelfing@gmx.de>
> ---
> Changes in v2:
> Warp the mouse to the center of the monitor.
Added to my 6.1-fixes queue.
thanks,
Gerd