Skip to content

Commit

Permalink
Add patched xwayland to overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
LovingMelody committed Jan 5, 2025
1 parent f9fea4e commit a8aa970
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
pins = import ./npins;
in
{
xwayland = pkgs.xwayland.overrideAttrs (p: {
patches = (p.patches or [ ]) ++ [ ./patches/ge-xwayland-pointer-warp-fix.patch ];
});
star-citizen-helper = pkgs.callPackage ./pkgs/star-citizen-helper { };

dxvk-gplasync =
Expand Down
35 changes: 35 additions & 0 deletions patches/ge-xwayland-pointer-warp-fix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
From fdc71a08f059d2466e39968652c3df71cc582b3e Mon Sep 17 00:00:00 2001
From: GloriousEggroll <[email protected]>
Date: Sun, 21 May 2023 03:34:46 -0600
Subject: [PATCH] xwayland pointer warp fix

---
hw/xwayland/xwayland-input.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/hw/xwayland/xwayland-input.c b/hw/xwayland/xwayland-input.c
index 34dd3c8..f7fa737 100644
--- a/hw/xwayland/xwayland-input.c
+++ b/hw/xwayland/xwayland-input.c
@@ -3202,9 +3202,6 @@ xwl_seat_emulate_pointer_warp(struct xwl_seat *xwl_seat,
if (!xwl_seat_can_emulate_pointer_warp(xwl_seat))
return;

- if (xwl_seat->x_cursor != NULL)
- return;
-
if (!xwl_seat->pointer_warp_emulator)
xwl_seat_create_pointer_warp_emulator(xwl_seat);

@@ -3215,6 +3212,8 @@ xwl_seat_emulate_pointer_warp(struct xwl_seat *xwl_seat,
xwl_window,
sprite,
x, y);
+ if (xwl_seat->x_cursor != NULL)
+ xwl_seat_destroy_pointer_warp_emulator(xwl_seat);
}

static Bool
--
2.40.1

0 comments on commit a8aa970

Please sign in to comment.