From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8025 invoked by alias); 29 Jun 2014 13:52:56 -0000 Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com Received: (qmail 8013 invoked by uid 89); 29 Jun 2014 13:52:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mout.gmx.net Received: from mout.gmx.net (HELO mout.gmx.net) (212.227.17.20) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sun, 29 Jun 2014 13:52:51 +0000 Received: from [192.168.178.40] ([93.201.124.234]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0Lg6op-1WI1Tw3Q5r-00pcL1 for ; Sun, 29 Jun 2014 15:52:48 +0200 Message-ID: <53B01A30.4050606@gmx.de> Date: Sun, 29 Jun 2014 13:52:00 -0000 From: Oliver Schmidt User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: cygwin-xfree@cygwin.com Subject: Re: emacs holding focus, not granting it to xterm References: <53847AC8.6070000@chalmers.se> <538C8376.2090502@dronecode.org.uk> <538CB93B.2050106@chalmers.se> <1403904163543-109599.post@n5.nabble.com> In-Reply-To: <1403904163543-109599.post@n5.nabble.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-06/txt/msg00026.txt.bz2 On 6/27/2014 11:22 PM, alflanagan wrote: > The problem occurs when I run emacsclient to connect to an existing instance > of emacs; the file shows up in emacs and emacsclient exits as expected, but > focus remains "stuck" in emacs for some time. I tried the following to reproduce the problem: Under Cygwin X Server Version 1.15.1-3: 1.) Start an xterm under cygwin with xserver in multiwindow mode. 2.) From this cygwin xterm log into remote linux (debian 3.2.0-4-486) machine with "ssh -X". 3.) After logged in to the remote linux machine: start emacs with "emacs &". This opens a new X11 window under cygwin X server which is on top and has keyboard focus. 4.) In Emacs Window type the key combination Alt+X and then "server-start" 5.) Go back to xterm window and type: "emacsclient &" to edit the file in the emacs-server. 6.) Now: all typing goes inte the emacs X11 window, although this window is in the background (it might even be not visible if it is behind other windows). It turns out that the above behaviour is the known problem that windows are not raised from the Cygwin X Server in multiwindow mode, if a program wants to programmatically activate a window as reported in http://www.cygwin.com/ml/cygwin-xfree/2005-06/msg00072.html . If I start a modified xserver with my patch applied from https://cygwin.com/ml/cygwin-xfree/2011-08/msg00034.html the following happens in step 6: 6'.) the emacs window is raised to the top over all windows and gets the keyboard focus. I think that 6'.) is the expected behaviour because this also happens if running under a x server on a linux machine instead of cygwin. Best regards, Oliver -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/