Add HiDPI xwayland + wlroots patches (#591)

This commit is contained in:
Mihai Fufezan 2022-08-29 16:51:39 +03:00 committed by GitHub
parent 6865660e51
commit bdd20c401d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 661 additions and 83 deletions

12
nix/xwayland-vsync.patch Normal file
View file

@ -0,0 +1,12 @@
--- a/hw/xwayland/xwayland-present.c
+++ b/hw/xwayland/xwayland-present.c
@@ -824,7 +824,8 @@
dixDestroyPixmap(vblank->pixmap, vblank->pixmap->drawable.id);
vblank->pixmap = NULL;
- if (xwl_present_queue_vblank(screen, window, vblank->crtc,
+ if (vblank->target_msc > crtc_msc &&
+ xwl_present_queue_vblank(screen, window, vblank->crtc,
vblank->event_id, crtc_msc + 1)
== Success)
return;