Skip to content

Nix: remove HiDPI patches#2870

Merged
fufexan merged 4 commits intohyprwm:mainfrom
fufexan:nix-stuff
Aug 14, 2023
Merged

Nix: remove HiDPI patches#2870
fufexan merged 4 commits intohyprwm:mainfrom
fufexan:nix-stuff

Conversation

@fufexan
Copy link
Copy Markdown
Member

@fufexan fufexan commented Aug 1, 2023

Describe your PR, what does it fix/add?

Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)

Will need to be announced to the community when merged.

Is it ready for merging, or does it need work?

Ready.

@vaxerski
Copy link
Copy Markdown
Member

vaxerski commented Aug 1, 2023

reqs a wiki update ofc ass well

@q234rty
Copy link
Copy Markdown
Contributor

q234rty commented Aug 8, 2023

they are deprecated because xwayland:force_zero_scaling does exactly the same with less hacks

Unfortunately, I believe xwayland:force_zero_scaling as it currently is does not support multi monitor with different scale factors, since X11 does not support them except maybe with Qt.

@MrDuartePT
Copy link
Copy Markdown
Contributor

MrDuartePT commented Aug 8, 2023

@fufexan since you seems to be the maintainer of the Nix package for Hyprland you can give a look at this PR: #2874.

Doesn't seems to break the Nix package but I don't use Nix to be sure.

@fufexan
Copy link
Copy Markdown
Member Author

fufexan commented Aug 8, 2023

@q234rty as far as I know, the patches don't solve this issue either.

@q234rty
Copy link
Copy Markdown
Contributor

q234rty commented Aug 8, 2023

@fufexan These patches partially mitigate this issue by letting the compositor do per-monitor downscaling, e.g. if one monitor is under 200% and another monitor is under 100%, Xwayland apps will see two 200% screens and the compositor will do the downscaling on the 100% monitor. This is of course not perfect but still much better than having very large Xwayland apps on the 100% monitor.

@fufexan
Copy link
Copy Markdown
Member Author

fufexan commented Aug 8, 2023

@q234rty if the users desire that functionality, they can copy the code previous to these commits and override hyprland themselves. In the meantime, we will be waiting for an official solution.

@q234rty
Copy link
Copy Markdown
Contributor

q234rty commented Aug 8, 2023

Whatever, I will just continue maintaining my AUR hyprland-hidpi-xprop-git package with the old approach :)

@vaxerski
Copy link
Copy Markdown
Member

vaxerski commented Aug 9, 2023

we are removing the patches because of my pressure to do so.

The approach is shit and buggy, requires patching which already is a pain, and xwayland:force_zero_scaling does exactly the same.

@q234rty
Copy link
Copy Markdown
Contributor

q234rty commented Aug 9, 2023

and xwayland:force_zero_scaling does exactly the same.

As mentioned above, xwayland:force_zero_scaling does not handle multi monitor with different scale factors, so it does not "do exactly the same"

@vaxerski
Copy link
Copy Markdown
Member

vaxerski commented Aug 9, 2023

does it not? how so? it removes scaling.

@q234rty
Copy link
Copy Markdown
Contributor

q234rty commented Aug 9, 2023

Yes, it removes scaling by the compositor, but no, X11 itself does not handle multi monitor with different scale factors, so letting X11 see the same scale factor across all monitors and letting the compositor do the downscaling is helpful, which is what the old approach did.

@fufexan fufexan force-pushed the nix-stuff branch 5 times, most recently from 236f770 to 6aa2cdd Compare August 12, 2023 13:12
Copy link
Copy Markdown
Contributor

@spikespaz spikespaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left a many comments, most are nitpicks or questions. This looks good as it is. There are some suggestions that do not align with the description of the PR.

Comment thread nix/default.nix
Comment thread nix/default.nix
Comment thread nix/hm-module.nix
Comment thread nix/hm-module.nix
Comment thread nix/hm-module.nix
Comment thread nix/module.nix
Comment thread nix/module.nix
Comment thread nix/module.nix
Comment thread nix/wlroots.nix
Comment thread nix/wlroots.nix Outdated
- remove `hidpiXWayland` option
- rename `nvidiaPatches` -> `enableNvidiaPatches` for consistency
It seems that, on NixOS at least, having both the Hyprland and the wlr
desktop portals does not result in unexpected behaviour. xdph will be
started and wlr ignored.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants