Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

FVWM and Tcl/TK, How do I assign desktops?

25 views
Skip to first unread message

Mark Lakata

unread,
Apr 18, 1996, 3:00:00 AM4/18/96
to
I want a Tcl/Tk application to always open itself on the fourth
desktop running with the fvwm window manager. I know very little
about fvwm, but I am able to get xterm to open on the desired desktop,
as per the man page.

xterm -xrm "*Desk:2"

But tcl/tk doesn't seem to understand this resource. Is there a way
to do this? Perhaps there is a mechanism to send fvwm commands from
the tcl/tk application to the wm?

-Mark


John Haxby

unread,
Apr 19, 1996, 3:00:00 AM4/19/96
to

I *believe* that the way this works is that fvwm parses the WM_COMMAND property
on the newly created window and if it sees something like the above, then it
puts the xterm on the nominated desktop.

Anyway, to achieve the same effect for a Tk application, you'd need something
like

wm command . "myapp -xrm *Desk:2"

somewhere in your script (not in a procedure that isn't executed until the main
window is mapped, fvwm won't move an application around I suspect).

--
John Haxby
These are my opinions, not my employer's.


Ken Edwards

unread,
May 2, 1996, 3:00:00 AM5/2/96
to

John Haxby (j...@hazel.pwd.hp.com) wrote:

: lak...@cbaxp1.cern.ch (Mark Lakata) wrote:
: >I want a Tcl/Tk application to always open itself on the fourth
: >desktop running with the fvwm window manager. I know very little
: >about fvwm, but I am able to get xterm to open on the desired desktop,
: >as per the man page.
: >
: >xterm -xrm "*Desk:2"
: >
: > But tcl/tk doesn't seem to understand this resource. Is there a way
: > to do this? Perhaps there is a mechanism to send fvwm commands from
: > the tcl/tk application to the wm?

Add a style line to .fvwmrc or /////system.fvwmrc

Style "*Desk" StartsOnDesk 4


0 new messages