<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Jun 22, 2013 at 4:37 PM, Philippe Brochard <span dir="ltr"><<a href="mailto:pbrochard@common-lisp.net" target="_blank">pbrochard@common-lisp.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">Thijs Oppermann writes:<br>
<br>
> I've been looking into this, searching a lot, but unable to find what I need.<br>
><br>
> The situation:<br>
><br>
> I have multiple profiles for firefox. Everytime I shut down my computer I just<br>
> let them be killed, which means that the next time I start them up they will<br>
> ask me if I want to restore the previous session. These previous sessions often<br>
> consist of multiple windows (with multiple tabs, but that's beside the point).<br>
><br>
> In my .clfswmrc I've setup a hook so that firefox windows go to the 'browser'<br>
> frame (using absorb-window-nw-hook). But I would really like to have these<br>
> different profiles's windows go to different frames.<br>
><br>
> How can I set this up? I can't use the window name, as this is the tab title in<br>
> firefox and will be different for each window.<br>
><br>
> I was thinking if I could find the initial process id (PID) I could somehow<br>
> check if a navigator window was a child of the original PID and then send them<br>
> to the appropriate frame based on that.<br>
><br>
> In my searches I found a thread on the stumpwm list where someone else seems to<br>
> have been trying the same thing, but sadly the thread stops at a point where it<br>
> remains unresolved:<br>
><br>
> <a href="http://lists.nongnu.org/archive/html/stumpwm-devel/2009-08/msg00002.html" target="_blank">http://lists.nongnu.org/archive/html/stumpwm-devel/2009-08/msg00002.html</a><br>
><br>
> I searched the code for something like the '(xlib:get-property (window-xwin w)<br>
> :_NET_WM_PID)' mentioned there, but no dice.<br>
><br>
> So, is this possible? Any pointers would be very much appreciated...<br>
><br>
</div></div>Hi, two things comes in mind:<br>
<br>
1) You can use directly (xlib:window-id window) to know the window id.<br>
But I think it can change each time you reboot.<br>
<br></blockquote><div><br></div><div>The window id isn't much help, as this is different for each window. I want to be able to group all windows of 1 firefox process in 1 frame. That is why I want to know the process id of the 'parent' firefox process for each window. Then I can group the windows on that PID into 1 frame...<br>
</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2) If you always want a different frame for each firefox window, you can<br>
setup a default frame which absorb the first firefox window and then<br>
create a new one for each others.<br>
This can be done with a permanent new window hook (need to be written).<br>
<br></blockquote><div></div><div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Have a look at clfswm-nw-hooks.lisp. Indeed, you can ask if you want<br>
more details or I can write the code if needed.<br>
And, please, share your results here.<br>
<span class="HOEnZb"><font color="#888888"><br>
Philippe<br>
<br>
</font></span></blockquote></div><br></div></div>