Re: FVWM: Is it possible to place the cursor on a window

From: Neil Bird <neil.bird_at_rrds.co.uk>
Date: Tue, 27 Apr 1999 09:35:09 +0100

Sam Krishnabhat wrote:
> Is it possible to place the cursor automatically on a window
> when it pops up, I mean to draw the FOCUS on that. For example,
> when I do netscape find, netscape will open a dialog box
> with title "Netscape: Find". I want to be able to give focus
> to this whenever it pops up, by automatically placing the
> cursor there. How can I do it ?

  Here's what I have - BTW, it doesn't use the title of the window, but
the fact that all netscape's popups' classes have a "_popup" suffix:


AddToFunc NewWindowFunc \
   "I" WindowId $0 (*_popup) WarpToWindow 50 53


# FvwmEvent settings

*FvwmEventPassID

*FvwmEventCmd
*FvwmEvent add_window NewWindowFunc


  ... and start FvwmEvent in InitFunc.


  Warning: I /think/ that the PassID flag was a patch I included at some
point; I can't remember if it's in the raw 2.2 release ...
  
-- 
========================- http://www.rrds.co.uk/ -======================
 Neil Bird                   |   This is who we are     The time is near
                             |        There are 249 days remaining
 mailto:neil.bird_at_rrds.co.uk |                           [ T-42 days! ]
--
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 Tue Apr 27 1999 - 03:29:37 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:02 BST