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

UPDATE_FVWM_SCREEN: respect StartsOnDesk style #91

Merged
merged 2 commits into from
May 27, 2020
Merged

Conversation

ThomasAdam
Copy link
Member

Previously, when StartsOnDesk was used, although the desk was correctly
set, the desk would never change thereafter, once the window was moved.

This was because the UPDATE_FVWM_SCREEN macro assumed it could always
update the window, but never took into account that when moving
monitors, the desk also needed to be changed.

But this can't blindly happen in all cases, as on initla mapping of the
window, the UPDATE_FVWM_SCREEN macro would have overriden the
StartsOnDesk style.

This change introduces a flag to track this as well as reducing the
number of assigments which weren't needed when updating the screen.
Also removed an extraneous assignment.

Helps #86

@ThomasAdam ThomasAdam added the type:bug Something's broken! label May 23, 2020
@ThomasAdam ThomasAdam self-assigned this May 23, 2020
@ThomasAdam ThomasAdam force-pushed the ta/gh-86 branch 2 times, most recently from 1c80d27 to 6bafc8c Compare May 23, 2020 15:37
Previously, when StartsOnDesk was used, although the desk was correctly
set, the desk would never change thereafter, once the window was moved.

This was because the UPDATE_FVWM_SCREEN macro assumed it could always
update the window, but never took into account that when moving
monitors, the desk also needed to be changed.

But this can't blindly happen in all cases, as on initla mapping of the
window, the UPDATE_FVWM_SCREEN macro would have overriden the
StartsOnDesk style.

This change introduces a flag to track this as well as reducing the
number of assigments which weren't needed when updating the screen.
Also removed an extraneous assignment.

Helps #86
When deducing if the windows in the stack ring should be compared
against, only consider those windows on the same monitor as the current
window.

Fixes #86
@ThomasAdam ThomasAdam merged commit a6a9b85 into master May 27, 2020
@ThomasAdam ThomasAdam deleted the ta/gh-86 branch May 27, 2020 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something's broken!
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

RaiseLower only Lowers windows in per-desktop mode in certain conditions
1 participant