wdisplays
wdisplays copied to clipboard
Fixed menu scaling issue by disabling the use of GTK popover
Fixes https://github.com/artizirk/wdisplays/issues/9. Although I don't know why Hyprland displays this abnormally, removing the use of popover in dropdown menu doesn't seem to cause a regression. Related document: https://docs.gtk.org/gtk3/method.MenuButton.set_use_popover.html https://docs.gtk.org/gtk3/method.MenuButton.set_menu_model.html
Before:
After:
Thanks!
Thanks a lot. This fix the issue on my side too.
Can confirm the issue and that the PR resolves the issue.
Here's a Nix expression which can test it (however, if nixpkgs gets updated, this expression may not work):
(wdisplays.overrideAttrs (attr: {
patches = (if attr ? patches then attr.patches else []) ++ [(fetchurl {
url = "https://github.com/artizirk/wdisplays/commit/50e549465d63cdcac1deb385d437a66cb2d08f43.diff";
hash = "sha256-W9Qk4aX0s+thNy9Slsaz/v2dw+4bLV/OsWH4vhgtXRE=";
})];
}))