D10344: Create panel on current screen

Robert Hoffmann noreply at phabricator.kde.org
Tue Feb 6 14:58:54 UTC 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20180206/58044c67/attachment-0001.html>


More information about the Plasma-devel mailing list