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

maximize: randr: assign correct monitor to window #812

Merged
merged 1 commit into from
Jan 20, 2023
Merged

Conversation

ThomasAdam
Copy link
Member

When maximizing a window it's possible that a window could be between
different monitors. In such cases, fvwm computes the best monitor to
put the maximized window on, based on how much of that window is on a
particular monitor.

To do this, if a new monitor is used, this information wasn't updated in
the fw structure which held the required information, so the "old"
monitor ended up being used which would have yielded the incorrect EWMH
information.

Fixes #811

When maximizing a window it's possible that a window could be between
different monitors.  In such cases, fvwm computes the best monitor to
put the maximized window on, based on how much of that window is on a
particular monitor.

To do this, if a new monitor is used, this information wasn't updated in
the fw structure which held the required information, so the "old"
monitor ended up being used which would have yielded the incorrect EWMH
information.

Fixes #811
@ThomasAdam ThomasAdam added this to the 1.0.7 milestone Jan 20, 2023
@ThomasAdam ThomasAdam self-assigned this Jan 20, 2023
@ThomasAdam ThomasAdam merged commit ddda804 into master Jan 20, 2023
@ThomasAdam ThomasAdam deleted the gh-811 branch January 20, 2023 20:56
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.

Using Maximize on a window split across RandR screens can wind up with bad results
1 participant