Tuomo Valkonen (el 2007-11-19 a les 18:32:50 +0000) va dir::

> On 2007-11-19, Ivan Vilata i Balaguer <[EMAIL PROTECTED]> wrote:
> > So there goes a simple question: Is there any way that I can flag XWrits
> > windows to *never* take focus?
> 
> It's doable but rather complicated. I'll leave the details of something
> more convenient to you, but supposing you already have a frame floating,
> you can use the following snippet (in the Mod1+F3 Lua code query) to 
> reattach it in 'passive' mode:
> 
> _:screen_of():attach(_, {passive=true, unnumbered=true, sizepolicy='free'})
>[...]

Umm, running that makes the floating window disappear!  It can be
reattached to normal frames using Mod1+A, though.  Other windows of the
same kind which appear later behave as normal.

I wonder if the following would be useful: define a new winprop so that:

 a. Floating windows with that flag do not take focus when they are
    mapped to the screen, even if they happen to pop under the current
    location of the mouse cursor.

 b. Framed windows with that flag pop into the current frame, but they
    just aren't shown: the current window is undisturbed (i.e. they pop
    "under" the current window, so to say, maybe with an urgent flag).

Windows with that flag may be activated later normally.

The behaviour may be useful for onoxious apps which open windows without
warning (e.g. the download manager of Firefox, some chat windows from
Gaim/Pidgin... you may imagine the most perverse name for the winprop).
Or maybe the proposal is too bizarre indeed. ;)

Thanks anyway for the suggestion,

::

  Ivan Vilata i Balaguer   @ Welcome to the European Banana Republic! @
  http://www.selidor.net/  @     http://www.nosoftwarepatents.com/    @

Attachment: signature.asc
Description: Digital signature

Reply via email to