From: Guido S. <__g...@we...> - 2005-04-17 16:56:55
|
On Sun, 17 Apr 2005 15:58:57 -0300 Jonatan Liljedahl <th...@ho...> wrote: > On Sun, 17 Apr 2005 14:23:01 +0200 > Guido Schimmels <__g...@we...> wrote: > > > I want to provide the option to tab/cycle through the windows of the > > current active application only. On MacOS X this is done via the Alt-~ > > shortcut. Problem is, I can't figure out to which application/process > > each window belongs. The process ID to which each window belongs would > > be ideal, if I could find out. > > But the same app could start multiple processes, each with different > PIDs, right? > (for example FireFox..) I don't know about FireFox, but Gnome's components run in a process of their own (unlike KParts). That makes it tricky :( > > > WM_COMMAND and WM_CLASS though often > > helpfull are not conclusive, unfortunately. WM_COMMAND is not always > > there and applications are essentially free in what they store in the > > WM_CLASS, although gtk apps seem to provide the application name as > > wm_class reliably. I need something that works each and everytime > > though, not something which works only for some toolkits. I looked > > through the X11 documentation, but can't find a conclusive function or > > data field anywhere. > > How does libwnck do it? (There is a grouping option in the tasklist > applet for example)... Will have look. |