[comp.windows.x] Decorations: Just Say NO?

caf@omen.UUCP (Chuck Forsberg) (10/19/89)

I have a client (a hacked version of xgif) that I want to be able to
specify (on its command line) if it should appear without a "decoration"
(ttle bar, etc.).

I currently do this by calling XSetClassHint using the name "NOdeco"
if the program is called with a "-nd" flag.  Then I use an appropriate
resource item in .Xdefaults.

This seems to work just fine with mwm, but I smells like a kludge.

Is there a more elegant/standardized way to do the same thing?

Chuck Forsberg WA7KGX          ...!tektronix!reed!omen!caf 
Author of YMODEM, ZMODEM, Professional-YAM, ZCOMM, and DSZ
  Omen Technology Inc    "The High Reliability Software"
17505-V NW Sauvie IS RD   Portland OR 97231   503-621-3406
TeleGodzilla:621-3746 FAX:621-3735 CIS:70007,2304 Genie:CAF

paulm@hpcvlx.cv.hp.com (Paul J. McClellan) (10/19/89)

If you are using the Motif toolkit, you could set the
mwmDecorations resource on your application's toplevel
shell.


Paul J. McClellan 
paulm@cv.hp.com
{hp-sde|hplabs}!hp-pcd!paulm

dbrooks@osf.osf.org (David Brooks) (10/21/89)

In article <844@omen.UUCP> caf@omen.UUCP (Chuck Forsberg) writes:
>I have a client (a hacked version of xgif) that I want to be able to
>specify (on its command line) if it should appear without a "decoration"
>(ttle bar, etc.).
[...]
>Is there a more elegant/standardized way to do the same thing?

Check out the mwm man pages: you provide a resource something like:

	Mwm*xgif*clientDecoration: none

Or, instead of "none" you may want "border", or any mix'n'match of the
various components.
-- 
David Brooks			dbrooks@osf.org
Open Software Foundation	uunet!osf.org!dbrooks
11 Cambridge Center
Cambridge, MA 02142, USA

caf@omen.UUCP (Chuck Forsberg) (10/22/89)

In article <1259@paperboy.OSF.ORG> dbrooks@osf.org (David Brooks) writes:

While on the subject of window managers and decorations - I'm beginning
to understand why "everyone is making one of his own".

I would like to have at least two client specific modes of decoration.
One would be the regular Motif frame.  The other would simply be a
border that lights up when the client has keyboard focus, `ala uwm.
For familiar clients, the less clutter the better.

Is there a way to dynamically change the focus policy on Mwm without
hacking .Xdefaults resources and restarting Mwm (very slow)?

dbrooks@osf.osf.org (David Brooks) (10/23/89)

In article <847@omen.UUCP> caf@omen.UUCP (Chuck Forsberg) writes:
>
>I would like to have at least two client specific modes of decoration.
>One would be the regular Motif frame.  The other would simply be a
>border that lights up when the client has keyboard focus, `ala uwm.
>For familiar clients, the less clutter the better.
>
>Is there a way to dynamically change the focus policy on Mwm without
>hacking .Xdefaults resources and restarting Mwm (very slow)?

Awkward, maybe, but I'd hardly call it slow.  It's still not the kind
of thing you want to do all the time, though, and you wouldn't want to
be doing it at all in a real-life application environment.

You do know, don't you, that (a) you can tailor the amount of
decoration on a per-client and per-clientClass basis, using defaults
(b) you can do it programmatically (c) normally, the border *does*
light up when the window has focus.
-- 
David Brooks			dbrooks@osf.org
Open Software Foundation	uunet!osf.org!dbrooks

caf@omen.UUCP (Chuck Forsberg) (10/23/89)

In article <1273@paperboy.OSF.ORG> dbrooks@osf.org (David Brooks) writes:
:>Is there a way to dynamically change the focus policy on Mwm without
:>hacking .Xdefaults resources and restarting Mwm (very slow)?
:
:Awkward, maybe, but I'd hardly call it slow.  It's still not the kind

Counting the time it takes to hit the menu and the confirm box, it takes
about 58 seconds to restart Mwm on my machine.  I think that's slow.

By contrast, it takes about 10 seconds to restart uwm, including several
seconds of that are required to get the menu slection.

In my uwm "Window Ops" menu KILL is black, Refresh is green and
Restart is yellow.  How can I specify this with Mwm?