Fix dragging windows from taskbar to activity pager applet to add to activity
AbandonedPublic

Authored by wstephenson on Feb 11 2020, 12:19 PM.

Details

Reviewers
hein
davidedmundson
Group Reviewers
Plasma
Summary

The code to handle a window drag from the taskbar to drop on the
Activity Pager to add the window to an Activity was broken,
because the test to see if the drop location is a running activity
still treated the itemId as an integer indexing into an array of running
activity indices, rather than an id string that could be a member of the
list of running activities.

This commit fixes that logic and simplifies the no-op return logic.
Test Plan

0) add activity pager widget[to panel]

  1. Create 2nd activity
  2. Open a window.
  3. Set that window via the window menu to only appear on the first activity
  4. Check that the 2nd activity is empty
  5. Drag the window's taskbar entry to the pager item for the 2nd activity
  6. check that the dropped window is now also present on the 2nd activity.

Diff Detail

Repository
R119 Plasma Desktop
Lint
Lint Skipped
Unit
Unit Tests Skipped
wstephenson created this revision.Feb 11 2020, 12:19 PM
Restricted Application added a subscriber: plasma-devel. ยท View Herald TranscriptFeb 11 2020, 12:19 PM
wstephenson requested review of this revision.Feb 11 2020, 12:19 PM

Changes integrated into https://phabricator.kde.org/D27322 - how do I withdraw/close a posted diff in phabricator? :)

In the "Add Action..." combobox above the comment field at the end you choose say "Abandon revision"