Bug 22375

Summary: dock any window into panel
Product: [Plasma] kwin Reporter: cristian
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: wishlist CC: barbieri, ben.creekmore, crissi99, malenko, mpartap, opensource, realnc, slaout
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: RedHat Enterprise Linux   
OS: Other   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description cristian 2001-03-14 13:59:38 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           kwin
Version:           KDE 2.1.0 
Severity:          wishlist
Installed from:    RedHat RPMs
Compiler:          Not Specified
OS:                Not Specified
OS/Compiler notes: Not Specified

It will be nice to have a "Dock into panel" option in the window operations menu for every window to do something like minimize to tray.

(Submitted via bugs.kde.org)
Comment 1 Lubos Lunak 2002-09-26 15:40:32 UTC
*** Bug 15610 has been marked as a duplicate of this bug. ***
Comment 2 Lubos Lunak 2002-09-30 17:57:22 UTC
*** Bug 37223 has been marked as a duplicate of this bug. ***
Comment 3 Iuri Fiedoruk 2003-04-23 15:12:06 UTC
Can anyone at least confirm this wish? 
It's pretty old, and I even think it's not that hard to implement at all today... 
Comment 4 Datschge 2003-04-23 17:05:15 UTC
Hum, this wish sounds like a wontfix if you ask me. You can already "dock" windows into your panel 
simply by minimizing them (given that you didn't deactivate your taskbar). What's the purpose of 
having several different "taskbar"? The system tray has a different purpose anyway. 
Comment 5 Sebastien 2003-07-20 17:54:36 UTC
> What's the purpose of having several different "taskbar"?
> The system tray has a different purpose anyway.

Euh... For example : you have KMail and you doesn't want to view it in taskbar.
Minimize to systemtray allow you to save space, when KMail do it's work.
Pegasus Mail (under Windows) use this functionment.

But you can have others programs...
Comment 6 Mathieu Jobin 2003-07-20 19:09:47 UTC
I would love to have kmail minimizing in the systray. which dock could flash when 
new mail arrive :) 
but i think this features is more kmail related... isnt it ?  
 
Comment 7 Sebastien 2003-07-21 22:39:00 UTC
> but i think this features is more kmail related... isnt it ?

Yes.

But if applications hasn't forsaw this feature (as KMail now :-D Or Evolution :
I use evolution and it isn't a KDE app : this feature will never be included ! )
we are... hum... embarased !

Could also dock others apps like konqueror, to keep this on the hand without use
place in the taskbar...
Comment 8 Sebastien 2003-07-22 19:22:22 UTC
I actually not have ADSL and I often start and stop (to free space in desktops)
Evolution.
In few months I will have ADSL and I will want to have Evolution (not a KDE
application) to stay in the systemtray insteid of have a "long" entry in the
allready full taskbar !!!
I've configured it to play a little sound when new email arrived.

The same can be applied to another example, as a peer to peer application : it
take place for "nothing" in the taskbar (and all apps can't forsee this feature).
And, as allready sayed, a Konqueror window to have severals folders under the hand.

So, I sta on my position : IceWM is a good WM for that :-)
Comment 9 Gustavo Sverzut Barbieri 2003-10-25 03:23:06 UTC
It would be cool to have XMMS to go to sys tray.

Just to note: this is possible with the command line:

kstart --window XMMS.* --alldesktops --skiptaskbar --skippager --tosystray xmms


but it's horrible to say this everytime!
Comment 10 Mathieu Jobin 2003-10-29 02:49:56 UTC
kwin should manage that.
It could be an advanced options for the window.
Just like the keep above, under, etc.

Its a personnal choice to want a certain app in the systray instead of in the taskbar when minimized.

But it should not appear in both. when minimize to systray, it should disapeer from the taskbar.

instead or in addition to put this in the advanced submenu, It would be an idea to map it with "Shift Minimize"
Comment 11 Eduardo Robles Elvira 2004-05-09 16:03:43 UTC
This could be a killer feature, I love it :-)! 

> Its a personnal choice to want a certain app in the systray instead of in the taskbar when 
> minimized. 
> 
> But it should not appear in both. when minimize to systray, it should disapear from the 
> taskbar. 

I'm not pretty sure this is expected behaviour; it's not the one that systray icons normally have.

 I think like it could also be an option: "[X] Maintain in systray" that could  be activated with "Shift Minimize" as you said. Then the window you should act as a real systray: it could be shown or hidden clicking in the systray icon, and it shold also have a small contextual menu. 

That way, you could deactivate the systray icon of the window in the indow contextual menu, or in the systray contextual menu.

Maybe kwin crew don't want to add such new feature to it.. couldn't this be an extension plugin or something like that, shipped deactivated by default with KDE ? That should do the trick, although I'm more interesting this great feature activated by default :).

The only problem that this feature can give us is that the systray could eat much space.. but I've found a solution to it, the #57729 bug. Thus, every problem I've detected dissapear; there's no disadvantage but advantages :).
Comment 12 Eduardo Robles Elvira 2004-05-09 16:06:12 UTC
Oh, I apologise my bad english and typo errors :|.
Comment 13 Eduardo Robles Elvira 2004-06-19 11:32:25 UTC
Hey, I've just found kdocker, ¡it's wonderful!: 

http://kde-apps.org/content/show.php?content=13356
http://kdocker.sourceforge.net/

"KDocker will help you dock any application in the system tray. This
 means you can dock openoffice, xmms, firefox, thunderbolt, anything!
 Just point and click. Works for both KDE and GNOME."

I wish it could be included in KDE =).
Comment 14 Sebastien 2004-06-20 14:39:19 UTC
> Hey, I've just found kdocker, ¡it's wonderful!

Sorry, but I don't see it as wonderful as a native KWin solution could be.
Because as soon as you close your session and restart it you have to redock the windows you have docked.

So, I've found it amazing too but it's limited... for the moment.
Don't know if it is possible for KDocker to remember all those as it could be possible for KWin... I hope.
Comment 15 Eduardo Robles Elvira 2004-06-21 14:50:19 UTC
Sebastien:

This feature request was made (not by me though) in the KDE 2.1.0 times, more than 3 years ago. When I saw kdock I thought: marvelous; finally we can dock any app! 

The way it was done... is a good one, but of course I'd like kdock to be integrated into Kwin and so on, but at least we have the main feature working ;-).

AFAIK no, it doesn't remember the docked apps. Now I'm going to do is the translation to my mother tongue (spanish) as the author has just added  i18n support :-). 
Comment 16 onsen-neko 2004-08-27 21:36:13 UTC
I think the different in the behavior of docked apps and minimized apps lies in the task-changing. With alt-tab (normaly) you can change to a minimized app. So, by a docked app this schould be not work, which allow the user using active and passive applications.
Comment 17 Lubos Lunak 2004-11-09 11:18:10 UTC
*** Bug 92941 has been marked as a duplicate of this bug. ***
Comment 18 Lubos Lunak 2004-11-18 13:53:23 UTC
*** Bug 93485 has been marked as a duplicate of this bug. ***
Comment 19 Mathieu Jobin 2004-11-18 20:17:09 UTC
maybe I dream of it, but there is not a kicker applet on kde-apps.org ?

I tried to find it, and i did not, I guess I dreamt.

Comment 20 Lubos Lunak 2006-08-01 11:13:40 UTC
*** Bug 126536 has been marked as a duplicate of this bug. ***
Comment 21 Maciej Pilichowski 2006-10-14 11:47:19 UTC
Btw. It would be great (after integration with systray) to have popup menu like kwikwdisk has. Now I have to use two tools -- kwikdisk to give me stats, and when the disk free space is too low I use FF.
Comment 22 Maciej Pilichowski 2006-10-14 11:55:11 UTC
Sorry everyone, I didn't notice that duplicate links lead from filelight to kwin.
Comment 23 Nikos Chantziaras 2009-02-10 16:04:56 UTC
I would like this feature too.  I'd like to have Thunderbird in the systray as I do now with Amarok and Kopete.

The Crystal decorator for KWin does this already (with the help of kdocker).  If you right-click the close button, the app goes to the systray.  Would be very useful to have this within KDE 4 without needing to use the Crystal decorator.
Comment 24 Martin Flöser 2011-08-14 07:43:59 UTC
I think it is time to face the obvious: the xembed based systray is dead and has been replaced by Status Notifiers (aka AppIndicators) which technically do not allow to "minimize" a window into a panel.

Apart from that the general agreement in the Plasma developer group is that the systray is for system services and not a taskbar with just small icons. The idea is to move the applications out of the systray again, so that there is no difference to a minimized window in the taskbar.

This makes this feature request useless and impossible to implement. Therefore I set to wontfix.
Comment 25 Christoph Thielecke 2014-08-17 11:00:06 UTC
I think minimize to tray should be really possible. Please add this feature and make it configurable, that the user can enable it if necessary.
Comment 26 Christoph Thielecke 2014-08-17 11:03:40 UTC
I think minimize to tray should be really possible. Please add this feature and make it configurable, that the user can enable it if necessary. Sure, ksystraycmd exists but how to get an already running application minimized?
Comment 27 Thomas Lübking 2014-08-17 11:30:25 UTC
>  Sure, ksystraycmd exists but how to get an already running application minimized?

ksystraycmd --wid `xwininfo | sed '/^xwininfo: Window id:/!d; s/xwininfo: Window id: 0x\([^ ]*\).*/0x\1/'` &
Comment 28 Christoph Thielecke 2014-08-17 11:56:40 UTC
Yeah, that really did the trick. I created a global shortcut. When I press the keys I can select the window I want and it gots a dock icon (sure it stays visible but a click on the tray icon hides it. Clicking again bring it up again.

Maybe that could be in an optimized form integrated into kwin to have an context menu entry by right clicking on window title...

Just for reference, here is my exported global shortcut (minimize_to_tray.khotkeys):

----- snipp ------
[Data]
DataCount=1

[Data_1]
Comment=Minimize options
DataCount=1
Enabled=true
Name=Minimize
SystemGroup=0
Type=ACTION_DATA_GROUP

[Data_1Conditions]
Comment=
ConditionsCount=0

[Data_1_1]
Comment=Minimize to tray
Enabled=true
Name=Minimize to tray
Type=SIMPLE_ACTION_DATA

[Data_1_1Actions]
ActionsCount=1

[Data_1_1Actions0]
CommandURL=ksystraycmd --wid `xwininfo | sed '/^xwininfo: Window id:/!d; s/xwininfo: Window id: 0x\\([^ ]*\\).*/0x\\1/'` &
Type=COMMAND_URL

[Data_1_1Conditions]
Comment=
ConditionsCount=0

[Data_1_1Triggers]
Comment=Simple_action
TriggersCount=1

[Data_1_1Triggers0]
Key=Ctrl+Alt+M
Type=SHORTCUT
Uuid={153a14e5-ddb9-4600-86f6-79176bc8dcea}

[Main]
AllowMerge=true
Version=2

------ snap ------