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

Fix min/max monitor placing issue #3111

Merged

Conversation

matt335672
Copy link
Member

Fixes #3075

When a multi-monitor session has the top-left vertex of the primary monitor at a desktop location other than (0,0), minimising and maximising the session results in the (0,0) co-ordinate of the entire desktop being placed at the top-left of the primary monitor.

The implementation seems to be at odds with [MS-RDPEGFX] 2.2.2.14 which suggests the monitorDefArray of the RDPGFX_RESET_GRAPHICS_PDU should be the same as that in the Monitor Layout PDU ([MS-RDPBCGR] 2.2.12.1)

when a multi-monitor session has the top-left vertex of the primary
monitor at a desktop location other than (0,0), minimising and maximising
the session results in the (0,0) co-ordinate of the entire desktop being
placed at the top-left of the primary monitor.

The implementation seems to be at odds with [MS-RDPEGFX] 2.2.2.14 which
suggests the monitorDefArray of the RDPGFX_RESET_GRAPHICS_PDU should be
the same as that in the Monitor Layout PDU ([MS-RDPBCGR] 2.2.12.1)
@matt335672
Copy link
Member Author

This is a tiny change, but I suspect it will need a lot of testing, particularly as we've got at least one enterprise user who has deployed GFX.

I've tested this with two screens and monitor hot-plug/unplug on Windows 10 so far. The primary screen was to the right of the secondary.

@metalefty
Copy link
Member

LGTM so far.

@matt335672
Copy link
Member Author

I've done as much testing as I can with my equipment.

I think I'll merge this into devel and set up a cherry-pick for v0.10. If we get no more reported problems with devel we can update v0.10 too.

@matt335672 matt335672 merged commit 1d927ad into neutrinolabs:devel Jun 19, 2024
14 checks passed
@matt335672 matt335672 deleted the investigate_gfx_min_max_issue branch June 19, 2024 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants