From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 29 01:24:36 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 C9BD516A420; Wed, 29 Mar 2006 01:24:36 +0000 (UTC) (envelope-from babkin@verizon.net) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9CE1B43D7C; Wed, 29 Mar 2006 01:24:23 +0000 (GMT) (envelope-from babkin@verizon.net) Received: from verizon.net ([141.153.253.191]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IWV00J767WAGHN1@vms046.mailsrvcs.net>; Tue, 28 Mar 2006 19:24:22 -0600 (CST) Date: Tue, 28 Mar 2006 20:24:04 -0500 From: Sergey Babkin Sender: root To: Greg 'groggy' Lehey Message-id: <4429E1B4.DDF52803@verizon.net> MIME-version: 1.0 X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 4.7-RELEASE i386) Content-type: text/plain; charset=koi8-r Content-transfer-encoding: 7bit X-Accept-Language: en, ru References: <19770339.131791143464603498.JavaMail.root@vms075.mailsrvcs.net> <20060328011345.GC25392@wantadilla.lemis.com> X-Mailman-Approved-At: Wed, 05 Apr 2006 12:22:00 +0000 Cc: "Rick C. Petty" , FreeBSD Hackers Subject: Re: Programs not accepting input? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: babkin@users.sf.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Mar 2006 01:24:37 -0000 Greg 'groggy' Lehey wrote: > > > 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. There is no mouse focus. The mouse events are delivered to whatever window happens to be under the mouse pointer. Well, unless a pointer grab is in effect, but that's a separate story. > 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. No, the remainder describes the case when the focus works correctly but the mapping from keycodes to keysyms gets somehow broken, so that the app gets the keyboard events but then it can't translate them into the text strings. Sorry, I couldn't look for the programs yet. -SB > > 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. > > ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > Part 1.2Type: application/pgp-signature