Subject: Re: Q: How to make toplevels appear in specific workspaces under CDE? - DN [1]
fellowsd@cs.man.ac.uk (Donal K. Fellows) - 27 Jan 2000 - comp.lang.tcl
In article <388E6826.114EDDB@pinebush.com>,
Christopher Nelson <chris@pinebush.com> wrote:
> sssmith4063@my-deja.com wrote:
>> I've been trying to find out how to cause a tk toplevel to appear in a
>> set (all, for example) of the workspaces in a CDE environment. AIX
>> 4.1.4/5 with Tcl/Tk 8.0.5 if that matters.
>
> I can't help you, but I'd like to know how, too.
You need to set the property _DT_WORKSPACE_PRESENCE on the toplevel in
question to the list of X atoms that describe the workspaces you want
to put the window on. The format of the property is a collection of
32-bit atoms, and the type should be _DT_WORKSPACE_PRESENCE. You can
query the settings using the following piece of cryptic code...
xprop -f _DT_WORKSPACE_PRESENCE 32a _DT_WORKSPACE_PRESENCE
Setting the property is not possible directly in Tk; you will need to
use a little extension. You will also need to be aware that Tk wraps
every toplevel itself with an extra window which it uses to implement
menu bars. Workspace names are of the form ws[0-9]* before internment.
Be very careful when messing around with X properties; you can cause a
lot of damage!
Donal.
--
Donal K. Fellows http://www.cs.man.ac.uk/~fellowsd/ fellowsd@cs.man.ac.uk
-- The small advantage of not having California being part of my country would
be overweighed by having California as a heavily-armed rabid weasel on our
borders. -- David Parsons <o r c @ p e l l . p o r t l a n d . o r . u s>
Last modified
2000-02-10
2000-02-10
(195.108.246.50)
Note: you are looking at
the snapshot of an old wiki
- much of this information
is likely to be very outdated
