From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27629 invoked by alias); 11 Jun 2014 20:50:38 -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 27589 invoked by uid 89); 11 Jun 2014 20:50:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-oa0-f53.google.com Received: from mail-oa0-f53.google.com (HELO mail-oa0-f53.google.com) (209.85.219.53) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 11 Jun 2014 20:50:34 +0000 Received: by mail-oa0-f53.google.com with SMTP id l6so346076oag.26 for ; Wed, 11 Jun 2014 13:50:32 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.182.138.99 with SMTP id qp3mr19007640obb.69.1402519832257; Wed, 11 Jun 2014 13:50:32 -0700 (PDT) Received: by 10.60.50.35 with HTTP; Wed, 11 Jun 2014 13:50:32 -0700 (PDT) Date: Wed, 11 Jun 2014 20:50:00 -0000 Message-ID: Subject: Re: XRaiseWindow for activating windows in multiwindow mode From: Patrick Herbst To: cygwin-xfree@cygwin.com Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2014-06/txt/msg00012.txt.bz2 On 03 Sep 2011, Jon TURNEY wrote: > > On 13/08/2011 19:39, Oliver Schmidt wrote: > > as reported in > > > > http://www.cygwin.com/ml/cygwin-xfree/2005-06/msg00072.html > > > > windows are not raised from the Cygwin X Server in multiwindow > > mode, if a program wants to programmatically activate a window. > > > > I played around and figured out that the problem can be solved by > > invoking the windows function SetForegroundWindow if a top level > > window is to be restacked and has no previous sibling. > > > > I enclose the patch in this email. It works fine for me, but > > I'm not sure if it has any side effects for other configurations > > or usage patterns. > > Thanks for looking into this, and for the patch. > > There definitely are some problems in this area, but I'm not sure this is the > 'correct' fix, though. > > The code as it stands is the product of some ... erm ... historical compromises. > > If I am reading the code correctly, it looks like currently no attempt is made > to synchronize changes in the X window Z-order (e.g. made by XRaiseWindow()) > to the native Windows window Z-order, and the comment in [1] seems to bear > this out. The code which perhaps would do this is in the disabled branch of > the #if/#else/#endif in winRestackWindowMultiWindow() > > The relevant thread seems to be [2] and the relevant change seems to be [3], > but I can't reconstruct the reasoning behind it. > > As discussed in the thread [2] various scenarios, e.g. AOT windows, native > windows interleaved with X windows in the native Z order, Windows with > focus-follows-mouse enabled via TweakUI all need testing after trying to fix > this, to ensure you haven't regressed them. > > [1] http://sourceware.org/ml/cygwin-xfree/2004-12/msg00074.html > [2] http://sourceware.org/ml/cygwin-xfree/2004-03/msg00540.html > [3] > http://cgit.freedesktop.org/xorg/xserver/commit/?h=CYGWIN&id=40bb4441ac7c87cfa0c62e8553c7e53b9fe4d765 > > > It would be nice if this feature could be integrated into future > > versions of the Cygwin X Server. > > > > Best regards, > > Oliver > > Is there a fix planned for this? I too use applications that make use of XRaiseWindow to navigate around multiple windows, and it doesn't work. Anyone have any info on this issue?? Thanks! Patrick Herbst Ref: https://cygwin.com/ml/cygwin-xfree/2011-09/msg00000.html -- 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/