From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 116240 invoked by alias); 8 Oct 2015 16:42:47 -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 116228 invoked by uid 89); 8 Oct 2015 16:42:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: limerock02.mail.cornell.edu Received: from limerock02.mail.cornell.edu (HELO limerock02.mail.cornell.edu) (128.84.13.242) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 08 Oct 2015 16:42:45 +0000 X-CornellRouted: This message has been Routed already. Received: from authusersmtp.mail.cornell.edu (granite3.serverfarm.cornell.edu [10.16.197.8]) by limerock02.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id t98GggDH007407; Thu, 8 Oct 2015 12:42:43 -0400 Received: from [192.168.1.3] (cpe-67-249-176-138.twcny.res.rr.com [67.249.176.138]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id t98Ggf1e019163 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Thu, 8 Oct 2015 12:42:42 -0400 Subject: Re: Window manager commands in native window manager multiwindow mode To: cygwin-xfree@cygwin.com, Gulliver Smith References: <56153EE7.3020602@cornell.edu> Cc: Jon Turney , Oliver Schmidt From: Ken Brown Message-ID: <56169D11.6080204@cornell.edu> Date: Thu, 08 Oct 2015 16:42:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <56153EE7.3020602@cornell.edu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-10/txt/msg00002.txt.bz2 On 10/7/2015 11:48 AM, Ken Brown wrote: > On 10/7/2015 11:20 AM, Gulliver Smith wrote: >> I ask this question from time to time just in case someone new sees it >> and decides to work on it or others might agree that it is a priority. >> Other people have raised this over the last few years as well. >> >> The issue is that I would like to raise windows from within a program >> (Emacs to be precise), but it doesn't work with the native window >> manager running in multiwindow mode. >> >> Emacs has several nice commands for which I have not-so-nice work >> arounds (opening and closing windows). These are: >> >> (raise-frame f) >> (iconify-frame f) >> (decionify-frame f) >> (make-frame-visible f) >> >> None of these work with Cygwin X. > > Please give a detailed recipe for reproducing the problem. Never mind. I searched the archive and found the details in an earlier post of yours: https://sourceware.org/ml/cygwin-xfree/2011-08/msg00046.html Here's what I found when I tried to reproduce the problem: >> (raise-frame f) I agree that this doesn't work. But there's a post by Oliver Schmidt (https://sourceware.org/ml/cygwin-xfree/2011-08/msg00047.html) purporting to have a fix for this. There is later discussion in which Jon Turney had some questions about the patch, but I didn't read all of it. Jon, was this ever resolved? >> (iconify-frame f) This works. >> (decionify-frame f) There's no such function in GNU emacs (even after correcting the obvious typo). >> (make-frame-visible f) This seems to be working. Maybe you're misunderstanding what "visible" means in this context (or maybe I am). The frame is initially visible, even if other windows are hiding it, as evidenced by the fact that (frame-visible-p f) evaluates to something non-nil ('icon' if the frame is iconified, 't' otherwise). If I now make it invisible by evaluating (make-frame-invisible f), both the frame and its icon disappear. There's no way to bring it to the front by using Alt-Tab. The frame and icon reappear if I now evaluate (make-frame-visible f). In summary, the only problem I see is with raise-frame, and maybe that one is fixable. We'll have to wait to hear from Jon and/or Oliver. Ken -- 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/