pavucontrol: Make context menus work on wayland

Otherwise, they open with an offset.
This commit is contained in:
Simon Bruder 2021-04-23 08:26:29 +02:00
parent 5de2acd1f0
commit 7fd7f98708
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -50,4 +50,17 @@ in
}); });
cyanrip = callPackage ./cyanrip { }; cyanrip = callPackage ./cyanrip { };
# TODO: Remove when pavucontrol > 4.0 is released
pavucontrol = super.pavucontrol.overrideAttrs (o: o // {
patches = [
# This fixes context menus on wayland
# Bug report: https://gitlab.freedesktop.org/pulseaudio/pavucontrol/-/issues/63
# Merge Request: https://gitlab.freedesktop.org/pulseaudio/pavucontrol/-/merge_requests/20
(super.fetchpatch {
url = "https://gitlab.freedesktop.org/pulseaudio/pavucontrol/-/commit/ae278b8643cf1089f66df18713c8154208d9a505.patch";
sha256 = "066vhxjz6gmi2sp2n4pa1cdsxjnq6yml5js094g5n7ld34p84dpj";
})
];
});
} }