Re: [crabbkw_at_nafai.dyndns.org: Re: FVWM: preventing application focus and "on top" or "front"]

From: <dominik.vogt_at_gmx.de>
Date: Thu, 8 May 2003 01:05:05 +0200

On Wed, May 07, 2003 at 05:51:49PM -0500, Casey Crabb wrote:
> On Wed, May 07, 2003 at 03:46:31PM -0700, Perry Hutchison wrote:
> > > > > > Is there a way to configure fvwm to forbid application focus and "on
> > > > > > top" or "front" unless I specifically take action to focus the window
> > > > > > or bring it to the front?
> > > > > Not sure that I understand you right, but I think you are looking for
> > > > > StartsOnPage (or StartsOnDesk) which is described in the FAQ (7.3).
> > > > I forgot to mention that you probably want to use this together with
> > > > SkipMapping which also is mentioned in the FAQ (7.3).
> > >
> > > Thanks for the tip; but its not quite what I want. I don't want
> > > applications to start up on any given desktop or page. I want them to
> > > be able to start up anywhere; and I want them never to be able to
> > > steal my focus or my viewspace. It may be that what I want is
> > > impossible though, so this is a good back up solution. Thanks
> >
> > It almost sounds as if you want them to start iconified.
>
> That would probably do half of it; the other half is I have a couple
> of misbehaved applications that, during the course of execution, try
> to steal my focus and attention. I can't get away from the
> applications, they're part of my job; what I'd like to do is force
> them to behave by refusing to give them focus when they demand it.

Well, this part can't be done without cooperation of the
application. If it takes the focus itself there is little you can
do since X does not ask the window manager for confirmation when a
window steals the focus. Possible solutions:

 1) Use FvwmEvent to transfer the focus back to the previous
    window when one of the said windows steals the focus. It will
    be difficult to define what is an acceptable transfer of focus
    and what is not. And you might still lose a couple of
    keystrokes in the process.

 2) Reserve a separate desk (not page) for these applications.
    Since their windows are never mapped while you are on another
    desk, they will hopefully not be able to steal the focus.

If you are lucky, the application use X's urgency hint to take
hold of the focus. When fvwm receives such a message, it
executes the predefined UrgencyFunc on the window and gives it the
focus in the process. In that case deleting the UrgencyFunc (see
man page) will help:

  DestroyFunc UrgencyFunc

Can I try out any of the misbehaved apps myself?

Bye

Dominik ^_^ ^_^

 --
Dominik Vogt, dominik.vogt_at_gmx.de
Reply-To: dominik.vogt_at_gmx.de
--
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 Wed May 07 2003 - 18:07:05 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:54 BST