Re: Forbiding focus to floating window
Ivan Vilata i Balaguer <[email protected]>
| Newsgroups | gmane.comp.window-managers.ion.general |
|---|---|
| Message-ID | <[email protected]> |
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/ @
signature.asc
(application/pgp-signature, 307 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iQCVAwUBR0P/yp+xtF0dvCVFAQIWsAP/WM/m80SgKuqvfTMYw5Fxhe9qd1m2Wp13 jRIPEmUIHvRfVWqi3EI5qtsxIFjiN5wlKvH7WkfeybxK4EVGTwhy0BgGPeyemKja 8qAZD/OZURk2HXiIQsCU4VgZ4nbnhJuxVehkgdHC2UR0WACUOZWOLYyCotfKculo TUUbzIP5rXw= =OI/i -----END PGP SIGNATURE-----