Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notify: fix notifications visibility on manually rotated monitor #5599

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

FUFSoB
Copy link
Contributor

@FUFSoB FUFSoB commented Apr 15, 2024

Describe your PR, what does it fix/add?

If you rotate monitor with eg hyprctl keyword monitor HDMI-A-1,highrr,0x0,1,transform,3, you then cannot see any notifications produced by hyprctl notify on the rotated monitor.

Fix is pretty simple: use vecTransformedSize instead of vecPixelSize

I also added extra check if monitor has changed its rotation/size. Without this check number of notifs on screen is limited by monitor's initial height (for 1080 with default settings that number is 37).

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

Cannot test with multiple monitors, but this shouldn't be a problem.

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

Should be ready.

Copy link
Member

@vaxerski vaxerski left a comment

Choose a reason for hiding this comment

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

lgtm, thanks!

@vaxerski vaxerski merged commit c99803a into hyprwm:main Apr 15, 2024
9 checks passed
@FUFSoB FUFSoB deleted the hyprnotify-rotate branch April 16, 2024 04:50
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.

2 participants