From kde-panel-devel Tue Oct 31 08:58:50 2017 From: Emirald Mateli Date: Tue, 31 Oct 2017 08:58:50 +0000 To: kde-panel-devel Subject: D8564: Disallow drop of task manager widgets outside of plasmoid when locked Message-Id: X-MARC-Message: https://marc.info/?l=kde-panel-devel&m=150944034414256 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--503a9eb162df4f719fed57015de8761a" --503a9eb162df4f719fed57015de8761a Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ascii" Mime-Version: 1.0 emateli created this revision. emateli added a reviewer: plasma-devel. Restricted Application added a project: Plasma. REVISION SUMMARY This patch disallows dropping task manager items outside of the plasmoid when widgets are locked. As a user whose primary device is a laptop (with a touch screen at that) I find myself involuntarily dragging task manager icons to other applications, such as a maximized browser window or a code editor. This leads to `.desktop` files being dropped in various applications, which I can assume is not something one wants to do very often(if at all?). This patch disables this functionality when widgets are locked. When they are unlocked the behaviour stays the same(so icons can be dragged into the desktop and so on). This affects "Task Manager" and "Icons-Only Task manager" plasmoids. TEST PLAN Have a panel with task manager - Lock widgets - Try to drop icons outside of panel REPOSITORY R119 Plasma Desktop BRANCH disable-drop REVISION DETAIL https://phabricator.kde.org/D8564 AFFECTED FILES applets/taskmanager/package/contents/ui/Task.qml applets/taskmanager/plugin/draghelper.cpp To: emateli, plasma-devel Cc: ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart --503a9eb162df4f719fed57015de8761a Content-Transfer-Encoding: 7bit Content-Type: text/html; charset="ascii" Mime-Version: 1.0 View Revision
emateli created this revision.
emateli added a reviewer: plasma-devel.
Restricted Application added a project: Plasma.

REVISION SUMMARY

This patch disallows dropping task manager items outside of the plasmoid when widgets are locked.
As a user whose primary device is a laptop (with a touch screen at that) I find myself involuntarily dragging task manager icons to other applications, such as a maximized browser window or a code editor. This leads to .desktop files being dropped in various applications, which I can assume is not something one wants to do very often(if at all?).

This patch disables this functionality when widgets are locked. When they are unlocked the behaviour stays the same(so icons can be dragged into the desktop and so on).

This affects "Task Manager" and "Icons-Only Task manager" plasmoids.


TEST PLAN

Have a panel with task manager

  • Lock widgets
  • Try to drop icons outside of panel

REPOSITORY
R119 Plasma Desktop

BRANCH
disable-drop

REVISION DETAIL
https://phabricator.kde.org/D8564

AFFECTED FILES
applets/taskmanager/package/contents/ui/Task.qml
applets/taskmanager/plugin/draghelper.cpp

To: emateli, plasma-devel
Cc: ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
--503a9eb162df4f719fed57015de8761a--