Glenn Golden <g...@zplane.com> writes: > Thomas Adam <tho...@fvwm.org> [2017-04-12 17:21:55 +0100]: >> On Wed, Apr 12, 2017 at 09:47:54AM -0600, Glenn Golden wrote: >> > Is it possible to force a given window to appear and remain only on a >> > particular page? (Effectively, something like "StartsOnPage", except it >> > would really be "StaysOnPage", i.e. the page assignment holds for all time, >> > not just upon initial mapping.) >> > >> > The need for this arises as follows: I'm running xv with the -poll option, >> > in order to periodically update the display of an image as the underlying >> > image file changes. Desired behavior is that the image only ever appears on >> > fvwm page (x,y). When I try to obtain this behavior via: >> > >> > Style myxv StartsOnPage x y, SkipMapping >> > >> > and then invoking xv as >> > >> > $ xv -name myxv -poll [myfile] >> > >> > it starts on page (x,y) as desired, but then later, when the image file >> > changes, the 'new' (i.e., updated) window always pops up on the current >> > page. >> >> You'd have to use FvwmEvent to do this. Listen on the new_page event and >> either iconify or deiconify the window as appropriate. >> > > Thanks! I will take a shot at it with that approach, thank you.
I suggest you just add RandomPlacement. I confine various windows to a page that way. DestroyFunc PageR AddToFunc PageR I Style "$0" StartsOnPage $1 $2 $3, SkipMapping, RandomPlacement # desk/x/y PageR "*Outlook Web*" 0 1 2 PageR "Untitled Message*" 0 1 2 PageR Seamonkey-bin 0 0 1 PageR Netscape 0 0 1 PageR Mozilla* 0 0 1 PageR s2.pl 0 1 0 PageR s1.py 0 1 0 PageR xmms 0 1 1 PageR Audacious* 0 1 1 PageR Ryhthmbox* 0 1 1 PageR Music* 0 1 1 -- Dan Espen