mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 01:06:01 +03:00
Meta: Force relative mouse coordinates with multiple screens
QEMU appears to always relay absolute mouse coordinates relative to the screen that the mouse is pointed to, without any way for us to know what screen it was. So, when dealing with multiple displays force using relative coordinates only.
This commit is contained in:
parent
a59ba0e21f
commit
8fe52b8306
Notes:
sideshowbarker
2024-07-18 11:30:24 +09:00
Author: https://github.com/tomuta Commit: https://github.com/SerenityOS/serenity/commit/8fe52b8306e Pull-request: https://github.com/SerenityOS/serenity/pull/8250
@ -57,6 +57,10 @@ SERENITY_SCREENS="${SERENITY_SCREENS:-1}"
|
||||
SERENITY_QEMU_DISPLAY_BACKEND="${SERENITY_QEMU_DISPLAY_BACKEND:-sdl,gl=on}"
|
||||
if [ "$SERENITY_SCREENS" -gt 1 ]; then
|
||||
SERENITY_QEMU_DISPLAY_DEVICE="virtio-gpu,max_outputs=$SERENITY_SCREENS "
|
||||
# QEMU appears to always relay absolute mouse coordinates relative to the screen that the mouse is
|
||||
# pointed to, without any way for us to know what screen it was. So, when dealing with multiple
|
||||
# displays force using relative coordinates only
|
||||
SERENITY_KERNEL_CMDLINE="$SERENITY_KERNEL_CMDLINE vmmouse=off"
|
||||
else
|
||||
SERENITY_QEMU_DISPLAY_DEVICE="VGA,vgamem_mb=64 "
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user