From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 28 01:13:47 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9126216A424 for ; Tue, 28 Mar 2006 01:13:47 +0000 (UTC) (envelope-from grog@lemis.com) Received: from ext-gw.lemis.com (ext-gw.lemis.com [150.101.14.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA40A43D53 for ; Tue, 28 Mar 2006 01:13:46 +0000 (GMT) (envelope-from grog@lemis.com) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.135]) by ext-gw.lemis.com (Postfix) with ESMTP id 03EFF131E0A; Tue, 28 Mar 2006 11:43:46 +1030 (CST) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id D7B5886F5A; Tue, 28 Mar 2006 11:43:45 +1030 (CST) Date: Tue, 28 Mar 2006 11:43:45 +1030 From: Greg 'groggy' Lehey To: babkin@users.sf.net Message-ID: <20060328011345.GC25392@wantadilla.lemis.com> References: <19770339.131791143464603498.JavaMail.root@vms075.mailsrvcs.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XpiJmOlWym1NsHNf" Content-Disposition: inline In-Reply-To: <19770339.131791143464603498.JavaMail.root@vms075.mailsrvcs.net> User-Agent: Mutt/1.4.2.1i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 VoIP: sip:0871270137@sip.internode.on.net WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Cc: "Rick C. Petty" , FreeBSD Hackers Subject: Re: Re: Programs not accepting input? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Mar 2006 01:13:47 -0000 --XpiJmOlWym1NsHNf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Monday, 27 March 2006 at 7:03:23 -0600, Sergey Babkin wrote: >> Same here. As mentioned in the original message, I can use the mouse >> to open a new window under firefox. The new window will accept >> keyboard input, the old one won't. It's almost as if it's deadlocking >> on input. >> >> Reminder: my final question was "how do I go about debugging this >> problem?". > > Does it happen with any kind of programs? No. So far I've only seen it with firefox, emacs and kklondike. > If yes, it would probably be something focus-related (and you'd be > able to see that the Focus event is not coming in). As already mentioned, this is not the case. I've seen this kind of problem too. > The focus management and the highlighting of the window manager > decoration are not physically connected in any way, so a bug in the > window manager might cause it to do the highlighting but forget to > give the focus to the application. But mouse focus and keyboard focus are the same, right? The windows respond to the mouse, but not to the keyboard. The remainder of your reply seems to build on the assumption that there is no focus. I'll leave it there in case I misunderstood and you want to refer to it. > To debug that you can add debugging printout to the WM. Or I've had > a script that sort of decoded the X protocol, so if you can get the > dump of these (maybe with ktrace), you can decode the dump and see > what happens with the focus. I'll look for it in my archives. > > If no, it might be something with the keyboard event translation to > keysyms/text. You can debug this by writing a test program that > would do it own dispatch loop - i.e. call XEvent() and then > XtDispatchEvent() (or some close names - I might not remember them > right), and print the debugging messages. So if you see that > XEvent() is getting events but then nothing comes out of dispatching > them, then the translation is broken somewhere. > > I might be able to find this kind of a program > in my archives too, I'll look around. thanks. > BTW, one place where the keyboard events might disappear is the > Input Method handling code. But I don't think that you run any Input > Methods. Not explicitly. Greg -- See complete headers for address and phone numbers. --XpiJmOlWym1NsHNf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFEKI3JIubykFB6QiMRAoBsAJ469XT7tCyNraRiHTrQzSjq49gnoACdFHqw hU5mq36eRvi8bbiZqylTFY4= =ugra -----END PGP SIGNATURE----- --XpiJmOlWym1NsHNf--