wdisplays icon indicating copy to clipboard operation
wdisplays copied to clipboard

Fixed menu scaling issue by disabling the use of GTK popover

Open Aleksanaa opened this issue 1 year ago • 4 comments

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 avatar Oct 08 '23 09:10 Aleksanaa

Before: image After: image

Aleksanaa avatar Oct 08 '23 09:10 Aleksanaa

Thanks!

kRHYME7 avatar Oct 11 '23 04:10 kRHYME7

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

maxmbed avatar Nov 14 '23 20:11 maxmbed

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

charmoniumQ avatar Dec 10 '23 00:12 charmoniumQ