Re: FVWM: Making an app pop up on the desk where it was started?

From: Simon Matthews <simon_at_boo.org>
Date: Sun, 20 Apr 2003 10:04:56 +0100

* Felix E. Klee (felix.klee.fvwm_at_gmx.net) [030420 09:45]:
> On Sunday 20 April 2003 00:58, Mikhael Goikhman wrote:
> > > when I start an application on a certain desktop, say 1, and switch to
> > > another desktop, say 2, I find it annoying that the application pops up
> > > on desktop 2. Is there a setting to force all applications and their
> > > child windows to appear on the desktop where they were started?
> >
> > If an application sets a window group hint on all its windos, you may
> > force them to appear on the same desk using:
> >
> > Style * KeepWindowGroupsOnDesk
> >
> > If your app does not set this hint, I guess, you may submit a feature
> > request to that application.
>
> Hm, many apps don't support that hint. But I forged a function that might be
> usable as a replacement for Exec:
>
> DestroyFunc DExec
> AddToFunc DExec
> + I Style $0 StartsOnDesk $[desk.n], SkipMapping
> + I Exec $0
>
> But this doesn't seem to work since the command name $0 doesn't neccessarily
> coincide with the proper style idenitifier.
>
> Any ideas how to fix this?

I have no idea if the applications you are trying to use it with support
-xrm, but in theory ... (ie completely untested):

DestroyFunc DExec
AddToFunc DExec
+ I Exec $0 -xrm "*Desk:$[desk.n]" $1

if you call it using:

DExec xterm "-e mutt"

will do the correct thing.

Regards,

Simon

--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Sun Apr 20 2003 - 04:06:26 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:54 BST