On 10 May, 2001 - Dominik Vogt sent me these 0.7K bytes:

> On Wed, May 09, 2001 at 06:41:11PM +0200, Tomas Ogren wrote:
> > Hello.
> > 
> > If you use fvwm2 and run Nautilus, bad focus stuff happens.. You won't
> > get any keyboard focus in the Nautilus window for instance. The Nautilus
> > people says it's an fvwm bug.. If anyone with knowledge of WM hints and
> > focus stuff could look at http://bugzilla.eazel.com/show_bug.cgi?id=8273
> > it would be great..
> 
> I made a patch, but I can't test this.  If the patch works you may
> report this to the Nautilus people so that they can add a hint to
> their bug database.

 if (Fw && !IS_LENIENT(Fw) &&
     Fw->wmhints && (Fw->wmhints->flags & InputHint) && !Fw->wmhints->input &&
     (sf = get_focus_window()) && sf->Desk == Scr.CurrentDesk)

sf here "always" becomes null (i haven't seen it become anything else),
so the region you patched is "never" affected. If I add that
g_f_w()==NULL is ok, it becomes slightly better.. I mostly get focus..
but I can lose focus while moving the mouse within the window etc.. very
weird stuff.. It is alsy very laggy.. If I move the mouse in and out of
the window, it gets focus very randomly and can leave it in the wrong
state (nautilus having focus when I'm outside etc).

If I do 'Style * Lenience' it works perfectly.

I've checked the source for twm (from xf86/4.0.3) and it has some simple
stuff in there...

                if (Tmp_win->title_w && Scr->TitleFocus &&      /* 4 */
                    Tmp_win->wmhints && Tmp_win->wmhints->input)
                  SetFocus (Tmp_win, ewp->time);
                if (Scr->NoTitlebar && Scr->TitleFocus &&       /*4a */
                    Tmp_win->wmhints && Tmp_win->wmhints->input)
                  SetFocus (Tmp_win, ewp->time);
                if (Tmp_win->protocols & DoesWmTakeFocus)       /* 5 */
                  SendTakeFocusMessage (Tmp_win, ewp->time);
                Scr->Focus = Tmp_win;

And with twm it works perfectly too...

Also tested: sawfish and enlightenment with perfect results
blackbox - no input focus but it raises the window when the cursor is
inside the window...

/Tomas - confused and with lacking knowledge of ICCCM/focus stuff
-- 
Tomas Ögren, [EMAIL PROTECTED], http://www.ing.umu.se/~stric/
|- Student at Computing Science, University of Umeå
`- Sysadmin at {cs,ing,acc}.umu.se
--
Visit the official FVWM web page at <URL:http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to