Bug 36031 - [Patch] Drag n drop from taskbar to pager
Summary: [Patch] Drag n drop from taskbar to pager
Status: RESOLVED FIXED
Alias: None
Product: kicker
Classification: Plasma
Component: Drag 'n Drop (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: John Firebaugh
URL:
Keywords:
: 89239 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-12-11 04:03 UTC by Unknown
Modified: 2005-04-09 04:31 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
provides drag and drop for the taskbar (13.32 KB, patch)
2004-10-08 21:22 UTC, Felix Berger
Details
improved patch (19.06 KB, patch)
2004-10-11 18:15 UTC, Felix Berger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jasonwood 2001-12-11 03:51:36 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           kicker
Version:           KDE 2.2.2 
Severity:          wishlist
Installed from:    Debian testing/unstable Packages
Compiler:          Not Specified
OS:                Linux
OS/Compiler notes: Not Specified

Hi

To me it feels intuitive to be able to drag an application from the taskbar to a particular desktop in the pager and have the application transfered to that window.

This would be a quicker way to achieve the same task as right-clicking and selecting To_Desktop->3 for example.



(Submitted via bugs.kde.org)
Comment 1 Stephan Kulow 2004-05-24 10:26:52 UTC
Replaced jasonwood@cableinet.co.uk with null@kde.org due to bounces by reporter
Comment 2 micha 2004-07-13 16:03:26 UTC
The only problem I see with the taskbar is that it looks like the items are buttons and you can not drag a button.

So I would suggest changing this behaviour and making the taskbar items draggable so one can create a shortcut easily.

Actually, it would be nice to be able to drop any file in the pager and the file gets opend on the corresponding desktop
Comment 3 Seb 2004-09-17 01:12:19 UTC
This is a duplicate of bug 89239. 

I believe it is possible and simplier than the previous reporter believes. More on http://bugs.kde.org/show_bug.cgi?id=89239
Comment 4 Stephan Binner 2004-09-27 06:59:50 UTC
> This is a duplicate of bug 89239. 

Funny, without your note I would have thought that your 89239 is a duplicate of this bug.
Comment 5 Stephan Binner 2004-09-27 07:00:09 UTC
*** Bug 89239 has been marked as a duplicate of this bug. ***
Comment 6 Felix Berger 2004-10-08 21:22:46 UTC
Created attachment 7817 [details]
provides drag and drop for the taskbar

The attached patch provides a first solution for the describe bug/wish:

Tasks can be dragged and dropped on the pager desktops. Furthermore the tasks
on a common desktop can be reordered using drag and drop.

The patch is rather big and it entails some design changes, some of which I
already did. But I changed things only where it was inevitable, at least IMHO.

The patch, as it is now, has several issues which have to be resolved:

* The TaskDrag object needs an extra instance of TaskManager. A design change
to make the TaskManager class a singleton could be a good idea.
* Reordering of tasks on the same taskbar has to be refined. Right now a task
is always moved to the left of the task it is dropped on.
* The reordering as it is done in the TaskBar code is more a hack, this should
be cleaned.

Before I tackle all these things I would like to have some feedback if I'm
going in the right direction.

Sincerely,
Felix Berger
Comment 7 Felix Berger 2004-10-11 18:15:14 UTC
Created attachment 7838 [details]
improved patch

This patch resolves most of the issues mentioned along the previous patch.
Still two issues remain:

* dragging of grouped taskcontainers isn't triggered correctly
* when a grouped taskcontainer is dropped on the pager only the first task of
the grouped task set is moved to the other desktop

The latter can be easily fixed, by extending the TaskDrag class to drag a list
of classes, if that's the preferred behaviour.

Felix Berger
Comment 8 Felix Berger 2004-12-18 15:48:02 UTC
Right now, the patch conflicts with the latest cvs version.

If there is still interest in the patch, I'll revise it.

Felix Berger
Comment 9 Christoph Wiesen 2005-01-18 20:24:10 UTC
I'm surprised (read: shocked) nobody reblied to Felix yet - I was about to file a bug report with exactly this wish.
I actually tried to do this (move task to the pager, to get it to another desktop) - I think this is _so_ intuitive it's almost silly this isn't there yet. Please Felix, if you still have the time and motivation refine it where needed and commit this. I suppose it won't make it in 3.4 anymore? A shame but still better late then never!
Comment 10 Felix Berger 2005-01-19 19:50:48 UTC
On Tuesday 18 January 2005 20:24, Christoph Wiesen wrote:

> ------- I'm surprised (read: shocked) 

I guess it got overlooked when the new maintainer Aaron J. Seigo took over. 
But don't worry I exchanged private emails  with him and we're still trying 
to get it into one of the 3.4.x releases.

Cheers,
Felix Berger

Comment 11 jos poortvliet 2005-03-12 14:41:32 UTC
that's great, as this is really a fine piece of work. by the way, can we drag windows from one desktop to another in the pager in KDE 3.4?
Comment 12 Aaron J. Seigo 2005-04-09 04:28:50 UTC
committed! also did pager DnD =)
Comment 13 Aaron J. Seigo 2005-04-09 04:31:55 UTC
*** Bug has been marked as fixed ***.