From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: A focus problem when mouse curse moved on a child-frame in linux Date: Fri, 12 Jan 2018 09:48:03 +0100 Message-ID: <5A587643.7090107@gmx.at> References: <142faa32.1a97.160e80635b0.Coremail.tumashu@163.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1515746862 18566 195.159.176.226 (12 Jan 2018 08:47:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 12 Jan 2018 08:47:42 +0000 (UTC) To: tumashu , "emacs-devel@gnu.org" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 12 09:47:38 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZuzs-0004GX-Ov for ged-emacs-devel@m.gmane.org; Fri, 12 Jan 2018 09:47:32 +0100 Original-Received: from localhost ([::1]:54438 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZv1s-0001ed-B3 for ged-emacs-devel@m.gmane.org; Fri, 12 Jan 2018 03:49:36 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZv0V-0001Ma-DE for emacs-devel@gnu.org; Fri, 12 Jan 2018 03:48:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZv0S-00023K-9a for emacs-devel@gnu.org; Fri, 12 Jan 2018 03:48:11 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:60129) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eZv0R-00022e-Vh for emacs-devel@gnu.org; Fri, 12 Jan 2018 03:48:08 -0500 Original-Received: from [192.168.1.100] ([46.125.249.101]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MBFBB-1ek3Uc46oH-00AGrx; Fri, 12 Jan 2018 09:48:04 +0100 In-Reply-To: <142faa32.1a97.160e80635b0.Coremail.tumashu@163.com> X-Provags-ID: V03:K0:O/xvLg58iUsFfl4eUPEt57Ik05TyWVYlompEAS08qLGbWJt+p6t s+8EW42g5qM3ZjeRk5/ptLt/Ihy2KmFIp7OpDEjIHLbGy1eWBmnW2B3VyJfh1Ex1KX9YK85 1l+HROu69W7i/8zeLzLqeexKQLvhXT3F1NWpqerEjIjiB1KzCmhNY6Ibf13orN1FQxw84z6 59ebd6tZ0CntEDV8a0TYg== X-UI-Out-Filterresults: notjunk:1;V01:K0:PmP5PyIfoP8=:A3gDmwPbGn4Ofjn/gZ6NRl uvXAG9iDxgm4bugaMSKHUKqHgvtcHIDDzosRhWgUmz1w8M8o+GZBIlvT8gnKz9DtEX9qlDgxK MYgh7d2Rlww0Koh4hgjt0tGajeUxvKOLkh5d1pzgNCybXsaGBk6M5Tpjv/B+uQoeFXmKoUE4h MbKmc2YiZjJUgVI0J9vwTaJ7lIWp3knMj44/2WzZ3bex4NbTW9gdFkmchoDvvV85TVpRUH/h/ LYJWikla4zcP3d4KqpC4PIsR4aoYKvJMgQMzJLcC/rlgyoQUhBsi5y77q9YblJE9XfmQ40siF S6AvP7EtcguuF3EW3lDX/bCm+bRm3nYu52SpX+wurae7YzKFuM2g9E+M8UcisiUhgn6APFApT 6ZDIyfDfSXK8BA0G6AOcVubDjgKSmeGMNsCCub4YkV+5OrM7ADOUCP/iZBCBojmwR352DFWFN 2fx96BEFUTnvUCPoDApV79NReYQGcSKPvW3jKM7qAiG71jFUrCaUpuchQvqFDupHei+OQMDNV DKdo0QPRLjS8UrBVN9cpxsfNLZn4rkt6lhhYWmV3vl2IGEjlMQV+DVOL/Km3OZnbPtmnBVqHl dygUc6SuQb4mS+coLSRUwgxzEC0ahh60ldrHTGVlolYlZ+QiZcAIXEi6AvkbZErvr+vSgQzw8 U9gCxyRGAFGX2KSBZqdNan8VNafewJa4jvYYnPLUDYkAbzvJrG5Me+rD6vCaA26fCqtWncX85 zDXi6VegzhHqeN0ljwPxzxwnHfAV5GYzruFKLnOXYk+ysvw6chJOLEaPIz9KuYBJvfD4sZyh X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:221877 Archived-At: > ------------------------------------------------------- > (let ((buffer (get-buffer-create "*test*")) > (test (let ((after-make-frame-functions nil)) > (make-frame > `((parent-frame . ,(window-frame)) > (no-accept-focus . t) [...] > (fit-frame-to-buffer test)) > > ----------------------------------------------------------- > > 1. eval above code at , a child-frame will be at > 2. move mouse curse on the top of this child-frame Since the child frame is specified to not accept focus I can't do that. > 3. type "a", the "a" should be inserted into the position , > on Windows, it is, but on linux, the "a" is inserted into the > child-frame's buffer instead of position The "a" is inserted at position here (GTK+ Version 3.4.2, xfwm4 under Xfce 4.8 on Debian). I'm afraid your window manager doesn't process the 'accept-focus' parameter correctly. martin