mirror of
https://gitlab.gnome.org/GNOME/libmks.git
synced 2024-12-21 21:25:21 +00:00
This library provides a "Mouse, Keyboard, and Screen" to QEMU using the D-Bus device support in QEMU and GTK 4.
640587ed0f
Always creating the texture even if the app is not being displayed (minimized / different virtual monitor) or if the GdkFrameClock drops a frame we end up doing a comparison with a very old frame causing full redraws in certain cases or even artifacts in others. Instead, we only build the texture once snapshot is called and accumulate the damage area until that happens to avoid updating the wrong area |
||
---|---|---|
data/icons | ||
docs | ||
lib | ||
subprojects | ||
tools | ||
.editorconfig | ||
.gitignore | ||
.gitlab-ci.yml | ||
COPYING | ||
libmks.doap | ||
meson_options.txt | ||
meson.build | ||
NEWS | ||
org.gnome.libmks.mks.json | ||
README.md |
libmks
This library provides a "Mouse, Keyboard, and Screen" to QEMU using the D-Bus device support in QEMU and GTK 4.
Documentation
Nightly documentation can be found here.
Testing
By default, QEMU will connect to your user session D-Bus if you do not
provide an address for -display dbus
. Therefore, it is pretty easy to
test things by running QEMU manually and then connecting with the test
program ./tools/mks
.
qemu-img create -f qcow2 fedora.img 30G
qemu-system-x86_64 \
-enable-kvm \
-cpu host \
-device virtio-vga-gl,xres=1920,yres=1080 \
-m 8G \
-smp 4 \
-display dbus,gl=on \
-cdrom Fedora-Workstation.iso \
-hda fedora.img \
-boot d
and then to run the test widget
meson setup build
cd build
ninja
./tools/mks