public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
From: Ken Brown <kbrown@cornell.edu>
To: cygwin-xfree@cygwin.com, Gulliver Smith <gulliver.m.smith@gmail.com>
Cc: Jon Turney <jon.turney@dronecode.org.uk>,
	       Oliver Schmidt <oschmidt-mailinglists@gmx.de>
Subject: Re: Window manager commands in native window manager multiwindow mode
Date: Thu, 08 Oct 2015 16:42:00 -0000	[thread overview]
Message-ID: <56169D11.6080204@cornell.edu> (raw)
In-Reply-To: <56153EE7.3020602@cornell.edu>

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/


  reply	other threads:[~2015-10-08 16:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-07 15:20 Gulliver Smith
2015-10-07 15:48 ` Ken Brown
2015-10-08 16:42   ` Ken Brown [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-05-22 13:19 Gulliver Smith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56169D11.6080204@cornell.edu \
    --to=kbrown@cornell.edu \
    --cc=cygwin-xfree@cygwin.com \
    --cc=gulliver.m.smith@gmail.com \
    --cc=jon.turney@dronecode.org.uk \
    --cc=oschmidt-mailinglists@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).