artizirk / wdisplays

Mirror of cyclopsian/wdisplays
https://web.archive.org/web/20210204184506/https://github.com/cyclopsian/wdisplays
Other
182 stars 14 forks source link

Fixed menu scaling issue by disabling the use of GTK popover #13

Open Aleksanaa opened 9 months ago

Aleksanaa commented 9 months ago

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

Aleksanaa commented 9 months ago

Before: image After: image

kRHYME7 commented 9 months ago

Thanks!

maxmbed commented 8 months ago

Thanks a lot. This fix the issue on my side too.

charmoniumQ commented 7 months ago

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=";
  })];
}))