KASM-5652 Fix update loop and get window placement working #102
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Event added for
screenupdated
so it can be handled differently toscreenregistered
, notably the screenPlan doesn't need to be set again when updating (as it is already updated, this may be a bug where a shallow copy is being used and therefore updating the underlying values, but regardless, updating it again results in a loop).This fixes an issue where, when using auto placement (it's probably not limited to auto placement, but that was the use case that got the bug noticed), if a user is using 3 screen, the middle the main one. Adding an extra monitor adds a new window to the right hand screen, doing it again adds one to the left hand screen. This is all as it should be, but the display manager shows the 3rd monitor on the far right, and dragging it to the correct place doesn't work either.