D27353: Allow Activity Switcher to move/add windows to activities by drag and drop from the taskbar

2020-05-11 Thread Ivan Čukić
ivan requested changes to this revision.
ivan added a comment.
This revision now requires changes to proceed.


  Superseeded by https://phabricator.kde.org/D29548 since there was no activity 
for >2 months.

REPOSITORY
  R119 Plasma Desktop

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

To: wstephenson, #plasma, ivan, davidedmundson
Cc: anthonyfieroni, plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, 
jraleigh, zachus, fbampaloukas, ragreen, ZrenBot, ngraham, himcesjf, 
lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart


D27353: Allow Activity Switcher to move/add windows to activities by drag and drop from the taskbar

2020-04-03 Thread Ivan Čukić
ivan added a comment.


  Any news on this?

REPOSITORY
  R119 Plasma Desktop

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

To: wstephenson, #plasma, ivan, davidedmundson
Cc: anthonyfieroni, plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, 
jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, himcesjf, 
lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart


D27353: Allow Activity Switcher to move/add windows to activities by drag and drop from the taskbar

2020-03-01 Thread Anthony Fieroni
anthonyfieroni added a comment.


  Do it like in pager for wayland 
https://github.com/KDE/plasma-desktop/blob/master/applets/pager/plugin/pagermodel.cpp#L577

REPOSITORY
  R119 Plasma Desktop

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

To: wstephenson, #plasma, ivan, davidedmundson
Cc: anthonyfieroni, plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, 
jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, himcesjf, 
lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart


D27353: Allow Activity Switcher to move/add windows to activities by drag and drop from the taskbar

2020-03-01 Thread Will Stephenson
wstephenson added a comment.


  In D27353#618452 , @ivan wrote:
  
  > This looks cool. The thing I'm missing (correct me if I'm wrong - I'm yet 
to test the patch) is for it to open the switcher when dragging the window over 
the switcher applet icon.
  
  
  That would be org.kde.plasma.showActivityManager, I assume? If so, yes, that 
would be good for completeness. I will also need to add the drop functionality 
to org.kde.plasma.activitybar then I think this is feature complete.

REPOSITORY
  R119 Plasma Desktop

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

To: wstephenson, #plasma, ivan, davidedmundson
Cc: plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, 
fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, himcesjf, lesliezhai, 
ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart


D27353: Allow Activity Switcher to move/add windows to activities by drag and drop from the taskbar

2020-02-26 Thread Ivan Čukić
ivan added a comment.


  This looks cool. The thing I'm missing (correct me if I'm wrong - I'm yet to 
test the patch) is for it to open the switcher when dragging the window over 
the switcher applet icon.

REPOSITORY
  R119 Plasma Desktop

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

To: wstephenson, #plasma, ivan, davidedmundson
Cc: plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, 
fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, himcesjf, lesliezhai, 
ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart


D27353: Allow Activity Switcher to move/add windows to activities by drag and drop from the taskbar

2020-02-18 Thread Will Stephenson
wstephenson updated this revision to Diff 75898.
wstephenson added a comment.


  Removed debug statement;
  Added changed qml file to diff.

REPOSITORY
  R119 Plasma Desktop

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D27353?vs=75562&id=75898

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

AFFECTED FILES
  desktoppackage/contents/activitymanager/ActivityItem.qml
  imports/activitymanager/CMakeLists.txt
  imports/activitymanager/switcherbackend.cpp
  imports/activitymanager/switcherbackend.h

To: wstephenson, #plasma, ivan, davidedmundson
Cc: plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, 
fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, 
ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart


D27353: Allow Activity Switcher to move/add windows to activities by drag and drop from the taskbar

2020-02-17 Thread Will Stephenson
wstephenson added a comment.


  There is a change to the QML missing from this diff as it stands, will amend 
it tomorrow

REPOSITORY
  R119 Plasma Desktop

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

To: wstephenson, #plasma, ivan, davidedmundson
Cc: plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, 
fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, 
ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart


D27353: Allow Activity Switcher to move/add windows to activities by drag and drop from the taskbar

2020-02-12 Thread Will Stephenson
wstephenson created this revision.
wstephenson added reviewers: Plasma, ivan, davidedmundson.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
wstephenson requested review of this revision.

REVISION SUMMARY
  In the same way that the Activity Pager should (see 
https://phabricator.kde.org/D27322 for fix) accept dragged windows to move them 
between Activities, this patch allows the Activity Switcher (meta+q) to 
move/add (ctrl-drag) windows between/to Activities.
  
  Compare to 
https://cukic.co/2014/07/15/a-screencast-of-the-activity-switcher-in-plasma-5-1/
 (video at https://www.youtube.com/watch?v=uxaDaXW67Oo).

TEST PLAN
  > Move window between activities
  
  1. Setup desktop with two activities, taskbar, window on one activity, 
activate activity with the window on it
  2. Open Activity Switcher, Drag window's taskbar entry to the other 
activity's item.
  3. Observe window moves to other activity
  
  > Add window to another activity
  
  1. Setup remaining from previous test
  2. Open Activity Switcher, Ctrl-drag window's taskbar entry to the other 
activity's item.
  3. Observe window is now on all activities
  
  > Move window from all activities to a single activity
  
  1. Setup remaining from previous test. Window is on all activities
  2. Open Activity Switcher, Drag window's taskbar entry to an activity item
  3. Observe window is now only on one activity
  
  > Add window to two out of three activities
  
  1. Setup remaining from previous test. Window is on 1/2 activities
  2. Open Activity Switcher, Add 3rd activity using Activity Manager
  3. Ctrl-drag window's taskbar entry to the new activity.
  4. Observe window is now on 2/3 activities
  
  > Move window to a different 2/3 activities
  
  1. Setup remaining from previous test. Window is on 2/3 activities
  2. Open Activity Switcher, Activate an activity the window is present on
  3. Drag window's taskbar entry to the activity it is not on
  4. Observe window is now moved to the activity it was dropped on, and is no 
longer on the current activity
  
  > Add window to the only activity it is not on
  
  1. Setup remaining from previous test. Window is on 2/3 activities
  2. Open Activity Switcher, Activate an activity the window is present on
  3. Ctrl-drag window's taskbar entry to the activity it is not on
  4. Observe window is now present on all activities

REPOSITORY
  R119 Plasma Desktop

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

AFFECTED FILES
  imports/activitymanager/CMakeLists.txt
  imports/activitymanager/switcherbackend.cpp
  imports/activitymanager/switcherbackend.h

To: wstephenson, #plasma, ivan, davidedmundson
Cc: plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, 
fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, 
ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart