Repository navigation
Handle inactive monitors better - #447
Conversation
# Conflicts fixed in: # src/Widgets/DisplaysOverlay.vala
0f674f0 to
99c832b
Compare
|
Hi @jeremypw. I took the liberty to rebase the branch on main and to fix the conflicts to be able to test this branch. Before them, starting from the following initial disposition: |
| } | ||
| } | ||
|
|
||
| key.erase (0, 1); |
There was a problem hiding this comment.
A comment there would be nice, like Remove the dangling separator at the start
|
Apart from the remark I added, |
|
I see, the issue is here (comment in the code): We try to load a configuration where ":DISABLED" is in the middle of the key, but ":DISABLED" is always saved at the end, so the configuration is not found. |
|
I fixed most issues I found when disabling two displays and then re-enabling them. There is just one issue that remains with only one of my screens. When I re-enable it, it goes over the other active displays. It does not happen with the other display of the same model I have. So my guess is that it is linked to the order that the displays are arranged. I will try to find a solution. |
1c9c673 to
543c97f
Compare
|
I found the issue. It was not exactly an order issue. It was the last wrong behavior I found with this PR when testing with three monitors. |
- Disabled monitor are also ignored for key calculation. This way, the behavior is the same for disconnected and disabled displays
- Setting monitor transform value triggers position checks, which could override x and y that were just set - Transform is now set before setting x and y
543c97f to
e93f75e
Compare
|
I fixed the lint issues. |
# Conflicts: # src/Objects/MonitorLayoutManager.vala # src/Objects/MonitorManager.vala # src/Widgets/DisplaysOverlay.vala
|
@flodavid Thanks for your work on these two PRs. I have now merged them so we can work on any issues as they arise and start to improve the interface. |



Fixes #446
This PR addresses a number of issues around toggling the enabled property of monitors.
This heads towards #74 although the disabled displaywidgets are currently still drawn on the overlay. A future improvement would be to put them in a separate sidebar widget.