From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] frame.c: focus hooks Date: Tue, 19 Nov 2013 17:26:39 +0900 Message-ID: <87mwl0g5kw.fsf@uwakimon.sk.tsukuba.ac.jp> References: <183af97b-53d1-45b8-8a24-5ab6bd84f362@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: ger.gmane.org 1384849617 27102 80.91.229.3 (19 Nov 2013 08:26:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Nov 2013 08:26:57 +0000 (UTC) Cc: Drew Adams , emacs-devel To: Brian Jenkins Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 19 09:27:01 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 1VigeC-0006Wm-7b for ged-emacs-devel@m.gmane.org; Tue, 19 Nov 2013 09:27:00 +0100 Original-Received: from localhost ([::1]:47748 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VigeB-0004cr-RC for ged-emacs-devel@m.gmane.org; Tue, 19 Nov 2013 03:26:59 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45620) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vige2-0004cm-3k for emacs-devel@gnu.org; Tue, 19 Nov 2013 03:26:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vigdu-0007V7-RS for emacs-devel@gnu.org; Tue, 19 Nov 2013 03:26:50 -0500 Original-Received: from mgmt2.sk.tsukuba.ac.jp ([130.158.97.224]:58927) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vigdu-0007ST-Gm for emacs-devel@gnu.org; Tue, 19 Nov 2013 03:26:42 -0500 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mgmt2.sk.tsukuba.ac.jp (Postfix) with ESMTP id C2E8E970A0A; Tue, 19 Nov 2013 17:26:39 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 9A9611A27DD; Tue, 19 Nov 2013 17:26:39 +0900 (JST) In-Reply-To: X-Mailer: VM undefined under 21.5 (beta34) "kale" 182d01410b8d XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 130.158.97.224 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:165361 Archived-At: 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".