On 9/5/06, Nicolas Roard <[EMAIL PROTECTED]> wrote:
On 9/6/06, Nicolas Roard <[EMAIL PROTECTED]> wrote:
> Eg that's exactly what we need to do. Afaik, appicon windows have a
> special X11 hint indicating that they are appicon windows. So what we
> must do then is to get the list of an application's windows, iterate,
> and if one window is the appicon window, reparent it on the dock. That
> way GNUMail can simply updates its icon, Preferences.app can display a
> clock, etc. And we get docklets that way too (simply create an
> application with just one appicon and nothing else). It's even
> possible WMaker docklets would work out of the box that way...

I added a function into XWindowServerKit to check the IconWindowHint
... but it seems it's not enough to detect the appicon windows... I
think I remember that GNUstep doesn't set the hint if it's not running
under wmaker, or something similar...  Well I'll need to delve into
-back to know exactly when and how IconWindowHint is set... pfff ...
:-/


 Now, I am thinking that we can put the workspace switch function
 in the contextual menu of that GNUstep icon.
 Just like on mac, you can have a contextual menu on the dock
 depending on the application.
 And I also need the contextual menu to move application across workspaces.
 We can also use this contextual menu to quit/hide/show application,
 but I have no idea how to do that through distant object or notifiction ?
 NSWorkspace only offer a way to launch applications, not hide and
quite applications.
 Any idea how to do it ?

 The other issue is that each dock represent an application, not only a window.
 Therefore, we may have several terminal windows opened across workspaces
 and only one icon show up on the dock.
 Then hide and quit function on the dock will apply to all terminals,
 not only the focused one or the ones in the current workspace.
 It will surprise many people with experience with Windows/Gnome/KDE.
 Mac OSX does not have this problem because it does not have workspaces yet.
 I wonder how OSX 10.5 handle it ?

 Yen-Ju

--
Nicolas Roard
"I love deadlines. I like the whooshing sound they make as they fly
by." -- Douglas Adams

_______________________________________________
Etoile-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-discuss


_______________________________________________
Etoile-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-discuss

Répondre à