hoffmannrobert created this revision. Restricted Application added a project: Plasma. Restricted Application added a subscriber: plasma-devel. hoffmannrobert requested review of this revision.
REVISION SUMMARY In multi-monitor environments panels are always created on screen number 0. There is no easy way to have panels on the other screens besides editing plasma-org.kde.plasma.desktop-appletsrc and modifying lastScreen. This patch identifies the screen where the right-click 'Add Panel' happened and adds a panel to this particular screen. Depends on the changes in plasma-framework ( see https://phabricator.kde.org/D10343 ) providing Containment *createContainmentForScreen(int screenNum, const QString &name, const QVariantList &args = QVariantList()); Containment *addContainmentForScreen(int screenNum, const QString &name, const QVariantList &args, uint id, bool delayedInit = false); void Containment::setLastScreen(int screen); REPOSITORY R120 Plasma Workspace BRANCH master REVISION DETAIL https://phabricator.kde.org/D10344 AFFECTED FILES shell/scripting/scriptengine.cpp shell/shellcorona.cpp To: hoffmannrobert Cc: plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart