From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bozhidar Batsov Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] frame.c: focus hooks Date: Tue, 19 Nov 2013 16:10:00 +0200 Message-ID: References: <183af97b-53d1-45b8-8a24-5ab6bd84f362@default> <87mwl0g5kw.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e011609bc63952704eb8838dd X-Trace: ger.gmane.org 1384870204 9338 80.91.229.3 (19 Nov 2013 14:10:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Nov 2013 14:10:04 +0000 (UTC) Cc: Brian Jenkins , Drew Adams , emacs-devel To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 19 15:10:08 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vim0F-0004MF-Ij for ged-emacs-devel@m.gmane.org; Tue, 19 Nov 2013 15:10:07 +0100 Original-Received: from localhost ([::1]:49471 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vim0F-0007Og-30 for ged-emacs-devel@m.gmane.org; Tue, 19 Nov 2013 09:10:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vim0B-0007NA-As for emacs-devel@gnu.org; Tue, 19 Nov 2013 09:10:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vim09-0002Cv-Oe for emacs-devel@gnu.org; Tue, 19 Nov 2013 09:10:03 -0500 Original-Received: from mail-oa0-x236.google.com ([2607:f8b0:4003:c02::236]:34397) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vim09-0002CK-It for emacs-devel@gnu.org; Tue, 19 Nov 2013 09:10:01 -0500 Original-Received: by mail-oa0-f54.google.com with SMTP id h16so2884766oag.13 for ; Tue, 19 Nov 2013 06:10:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=yOADcJEHvavQchBR/ry2XM5mHl5E3vLVUFc+0w9iLTQ=; b=djN0cIjnrvEr3VLmHnc5C5ReczXf4SyX1Re0CcsMf8QSN9XfvKi4WrcpJxXW29caUZ tmqnoWQMkXWZWL/aoI3Dll8J8uaSER/4uwuBv0Zs3bKzpMLgDYvALuR60Wdiq1oBBpCZ c1bsuA7IykmUgezngieVcS7Y4Fr6b9t3bTUTdvYAYRnlJ2FXtfWjXfArgU95zQ7TV43b yHKHrXdO/6H/A9H3EVAjY1IdKlqWyv2enZ4RCZDywdnXP+2w8v7Dvw0j0D041WobkEhy Ab/q5hRc5IQdIUMFOKlPuEloWyaf3TUtPHhZaJBX4NSYGs/Xhpk8Hv3Yj1jzlDrIZ4dl H76Q== X-Received: by 10.60.179.113 with SMTP id df17mr25649016oec.16.1384870200970; Tue, 19 Nov 2013 06:10:00 -0800 (PST) Original-Received: by 10.76.21.207 with HTTP; Tue, 19 Nov 2013 06:10:00 -0800 (PST) In-Reply-To: <87mwl0g5kw.fsf@uwakimon.sk.tsukuba.ac.jp> X-Google-Sender-Auth: ZpMGXfpaE0hnFkzDr4b6Lz0E75s X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c02::236 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:165381 Archived-At: --089e011609bc63952704eb8838dd Content-Type: text/plain; charset=UTF-8 Btw, it would be good if this change was mentioned in the NEWS, since I'm pretty sure I'm not the only Emacs user that will find it useful :-) On 19 November 2013 10:26, Stephen J. Turnbull wrote: > Brian Jenkins writes: > > > It's not clear to me that X itself even *has* a concept of "active > > application" distinct from "frame that has input focus". > > No, it doesn't, and it can't. > > Multiple applications can select events in the same X window at the same > time. For example, the classic debugging tool xev(1) selects events on > a window you select (say, an Emacs frame), and outputs a trace of those > events. Which is active: xev, or Emacs (which also receives those input > events and acts on them as if xev didn't exist)? > > The only sane answer is "both of them". > > > > --089e011609bc63952704eb8838dd Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Btw, it would be good if this change was mentioned in the = NEWS, since I'm pretty sure I'm not the only Emacs user that will f= ind it useful :-)


On 19 November 2013 10:26, Stephen J. Turnbull <stephen@xemacs.org>= ; wrote:
Brian Jenkins writes:

=C2=A0> It's not clear to me that X itself even *has* a concept of &= quot;active
=C2=A0> application" distinct from "frame that has input focus= ".

No, it doesn't, and it can't.

Multiple applications can select events in the same X window at the same time. =C2=A0For example, the classic debugging tool xev(1) selects events o= n
a window you select (say, an Emacs frame), and outputs a trace of those
events. =C2=A0Which is active: xev, or Emacs (which also receives those inp= ut
events and acts on them as if xev didn't exist)?

The only sane answer is "both of them".




--089e011609bc63952704eb8838dd--