[comp.windows.x.motif] Motif window raising question

danson@udel.edu (Douglas Anson) (06/18/91)

Hello!

Im running motif on my 386 platform (UHC SVR4).  I would like to know if it
is possible to have mwm allow writing into a window (i.e. an xterm), by
ONLY moving the mouse pointer into the window.  (i.e. twm allows you to do
this).  I would like to eliminate the extra mouse button press that is 
required to raise a window so that it can be written in.  

thanks in advance!
doug anson
danson@udel.edu
Univ. Of Del.
ASEL

roger@zuken.co.jp (Roger Meunier) (06/18/91)

In article <56516@nigel.ee.udel.edu> danson@udel.edu (Douglas Anson) writes:

 >  I would like to know if it
 > is possible to have mwm allow writing into a window (i.e. an xterm), by
 > ONLY moving the mouse pointer into the window.

Try adding the following to your resource defaults file (e.g., ~/.Xdefaults):

	Mwm*keyboardFocusPolicy:        pointer

Works for me...

BTW, does anyone have a clue as to why this is not the de facto default?
Who out there enjoys having to *explicitly* tell the window manager which
window they want to work with?
--
Roger Meunier @ Zuken, Inc.  Yokohama, Japan	(roger@zuken.co.jp)

marc@sequoia.cray.com (Marc Bouron) (06/18/91)

Put this in your .Xdefaults to avoid `click to type', and run xrdb:

	Mwm*keyboardFocusPolicy: pointer

[M][a][r][c]


################################################################################
#                           #  marc@sequoia.cray.com           #     .   .     #
#  Marc CR Bouron           #  M.Bouron@cray.co.uk     (ARPA)  #    _|\ /|_    #
#  Cray Research (UK) Ltd.  #  M.Bouron@crayuk.uucp  (DOMAIN)  #   (_|_V_|_)   #
#  +44 344 485971 x2208     #  M.Bouron@uk.co.cray    (JANET)  #     |   |     #
#                           #  ...!ukc!crayuk!M.Bouron (UUCP)  #               #
################################################################################

dj@micromuse.co.uk (D.J.Walker-Morgan) (06/18/91)

danson@udel.edu (Douglas Anson) writes:


>Im running motif on my 386 platform (UHC SVR4).  I would like to know if it
>is possible to have mwm allow writing into a window (i.e. an xterm), by
>ONLY moving the mouse pointer into the window.  (i.e. twm allows you to do
>this).  I would like to eliminate the extra mouse button press that is 
>required to raise a window so that it can be written in.  

Yes...

Add to your .Xdefaults file

Mwm*keyboardFocusPolicy:	pointer
Mwm*focusAutoRaise:		TRUE
Mwm*autoRaiseDelay:		500

(Flavour the autoRaiseDelay (it's in msec) to whatever suits you...)
(500 is it's default                                               )

(It's probably in a FAQ file near you)


-- 

=========================================================================
  dj@micromuse.co.uk | "I've seen the future, I can't afford it" - ABC
                     | Voice +44-71-352-7774 Fax +44-71-351-7834 

masa@hpsciz.sc.hp.com (Masayoshi Habu) (06/18/91)

In comp.windows.x.motif, danson@udel.edu (Douglas Anson) writes:

    Hello!

    Im running motif on my 386 platform (UHC SVR4).  I would like to know if it
    is possible to have mwm allow writing into a window (i.e. an xterm), by
    ONLY moving the mouse pointer into the window.  (i.e. twm allows you to do
    this).  I would like to eliminate the extra mouse button press that is 
    required to raise a window so that it can be written in.  

I believe that this resource setting does what you want:

Mwm*keyboardFocusPolicy:        pointer

Use this in your .Xdefaults or any other resoruces files to be read by xrdb
when your X server starts up.

Masa

marcs@slc.com (Marc San Soucie) (06/19/91)

Roger Meunier (roger@zuken.co.jp) writes:

> Try adding the following to your resource defaults file (e.g., ~/.Xdefaults):
>
> 	Mwm*keyboardFocusPolicy:        pointer
>
> BTW, does anyone have a clue as to why this is not the de facto default?
> Who out there enjoys having to *explicitly* tell the window manager which
> window they want to work with?

Well, I don't exactly enjoy it, but it's a lot less annoying than having to
locate my bleeding pointer, shove it into a window and then leave the bloody
thing there on top of my good stuff just so I can type into the window.

I may be in the minority, but I cannot fathom how you pointer-driven types can
live with that behaviour.

    Marc San Soucie
    Portland, Oregon
    marcs@slc.com

P.S. One good reason to have click-to-type as the default is that it is a heck
of a lot easier to explain to someone who has -no- prior window-system
experience. When a new window pops up but because of geographical happenstance
the pointer is not in the window, how does one explain the fact that one cannot
type into the new window?

jfm@tss.com (Joe Martin) (06/21/91)

In article <56516@nigel.ee.udel.edu> danson@udel.edu (Douglas Anson) writes:

   Im running motif on my 386 platform (UHC SVR4).  I would like to know if it
   is possible to have mwm allow writing into a window (i.e. an xterm), by
   ONLY moving the mouse pointer into the window.  (i.e. twm allows you to do
   this).  I would like to eliminate the extra mouse button press that is 
   required to raise a window so that it can be written in.  

Your subject references raising but your article asks about input focus so
I'll address both.  The following line in your resource file will cause the
focus to follow the pointer:  

Mwm*keyboardFocusPolicy:	pointer

If you also want the window raised, the following line will do it:

Mwm*focusAutoRaise:		True

--
*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
| Joseph F. Martin                    | Internet:  jfm@tss.com                |
| Teknekron Software Systems, Inc.    | UUCP:      ...!uunet!tss!jfm          |
| 530 Lytton Avenue, Suite 301        | (415) 325-1025                        |
| Palo Alto, CA  94303                | Disclaimer:  I never said that!       |
|                  "This article made from recycled char's"                   |
*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*