[21225] in Athena Bugs

home help back first fref pref prev next nref lref last post

linux 9.1.18: mozilla

daemon@ATHENA.MIT.EDU (John Carr)
Sat Dec 21 11:54:00 2002

Message-Id: <200212211653.LAA14835@psi-phi.mit.edu>
To: bugs@MIT.EDU
Date: Sat, 21 Dec 2002 11:53:58 -0500
From: John Carr <jfc@MIT.EDU>

System name:		psi-phi.mit.edu
Type and version:	i686 9.1.18 (with mkserv)
Display type:		

Shell:			/bin/athena/tcsh
Window manager:		gwm

What were you trying to do?
	Use the sort-of-latest, allegedly-greatest, web browser mozilla.

What's wrong:
	mozilla ignores keyboard input.

	After some investigation I determined that mozilla requires
	that XSetInputFocus be used with one of its top level windows
	as argument.  I (via my window manager) have focus set to
	PointerRoot, meaning keyboard input goes to the window where
	the cursor is or the nearest ancestor window that wants input.

	The setting of input focus is supposed to be invisble to clients.
	The only way for a client to tell which policy is in use is to
	call XGetInputFocus.

	As long as the cursor is within the mozilla window, mozilla
	receives exactly the same events whichever value is used for
	the focus window.  However, if focus is set to PointerRoot then
	mozilla IGNORES the keyboard events.  They are received and go
	into the complicated input processing code, which decides they
	are not interesting.

	So far I have not found an obvious explanation for this behavior,
	either in the source code or by speculating "what were they thinking?"

	As far as I can tell my window manager (gwm) is following the
	ICCCM standard.  I do not find the common window manager behavior
	where focus is actively moved every time the mouse moved to be
	an acceptable substitute for the X default input model.


	This behavior happens with the release version
	Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529, build 2002052918
	and with /mit/mozilla/.../mozbeta
	Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021213, build 2002121308

What should have happened:
	mozilla should not care what the user-specified root focus window is

Please describe any relevant documentation references:
	XSetInputFocus(3X11)


home help back first fref pref prev next nref lref last post