In the old KCM it was annoying that you couldn't drag screens outside when arranging them. However, in the new KCM you can lose the screens outside visible boundaries and only get them back by clicking "Center View".
This patch ensures that when *dropping* a screen, a corner of it stays visible so you can drag it back. Movement while dragging remains unrestricted.
Details
5.17?
This is the furthest I can drag a screen out.
Diff Detail
- Repository
- R104 KScreen
- Lint
Lint Skipped - Unit
Unit Tests Skipped
kcm/package/contents/ui/Screen.qml | ||
---|---|---|
83 | magic numbers? |
kcm/package/contents/ui/Screen.qml | ||
---|---|---|
83 | Suggestions? |
kcm/package/contents/ui/Screen.qml | ||
---|---|---|
83 | IMO magic numbers are probably okay here, but 20 is pretty similar to GridUnit so maybe just use multiples of that instead? |
There was also the idea to drop the Center View button and instead resize the view whenever an output is dropped to a different position. I feel this would be also a more elegant solution for the issue trying to be solved here, if we agree that this would be in general a good idea. Do we? @ngraham: I mean I talked about this with you.
That could also work, however the view wastes a lot of space right now, the screens could be a lot bigger, if we were to auto-zoom.
+1 for auto-zoom and making the screens bigger. Then we can remove the buttons that centers the view too.