When disconnecting the primary screen on a dual monitor setup and reconnecting it back, the available size of the secondary screen desktop may be reduced to the thickness of the primary screen panel, as can be seen by dragging a rubber band or trying to move some widgets. This apparently happens because the QML bindings had last been updated at the short moment when both panels were temporarily placed on the same screen. Update availableScreenRect therefore when a panel changes its screen.
Details
- Reviewers
davidedmundson - Group Reviewers
Plasma - Commits
- R120:13eaf08a6263: Update availableScreenRect when a panel moves to another screen
Diff Detail
- Repository
- R120 Plasma Workspace
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Could that also mitigate task manager showing windows of the wrong screen in certain scenarios?
The cases where I can reproduce that bug don't seem to be affected by the patch. The first case is connecting the same monitor with both VGA and DVI cables and swapping the outputs relative position along with swapping the primary output at the same time, and the second one involves placing the task manager widget on the desktop and disconnecting and reconnecting the primary monitor. I also experience completely disappearing taskbar buttons in certain cases, this also doesn't seem to be affected. As a side note, all those glitches get reverted when I enter panel customization or taskbar settings, and what looks like the cause is QQmlEngine::retranslate() getting called which updates all the QML bindings as a side effect.