unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Jeremy Maitin-Shepard <jbms@cmu.edu>
Cc: Drew Adams <drew.adams@oracle.com>,
	Jeremy Maitin-Shepard <jeremy@jeremyms.com>,
	emacs-devel@gnu.org
Subject: Re: mouse-autoselect-window
Date: Fri, 07 Sep 2007 20:56:31 +0200	[thread overview]
Message-ID: <46E19EDF.4040600@gmx.at> (raw)
In-Reply-To: <87hcm6fm00.fsf@jbms.ath.cx>

>>We do x_make_frame_invisible in this case.  Would that fail?
> 
> 
> I'm not sure what you mean by the reference to x_make_frame_invisible.

Sorry.  I meant x_make_frame_visible.

> I am referring to the following issue: Emacs wants to switch focus to a
> particular frame e.g. because the user ran the command (next-error) and
> the relevant file is already being shown in another frame (the "new
> frame").  If the new frame is already visible (i.e. mapped), then one of
> the hacks used by (select-frame-set-input-focus) may or may not succeed,
> depending on the window manager.  (There is also the issue that
> select-frame-set-input-focus is not used in all of the cases that is
> should be.)  

Which cases do you mean here?

> If, however, the new frame is unmapped and iconified, then
> select-frame-set-input-focus definitely will not work.

That's what x_make_frame_visible is supposed to achieve.

> Note that once a client offers a top-level window to the window manager
> to be managed (bringing it out of the Withdrawn state), 

How differs the "withdrawn" from the "iconified" state"?

> it will remain
> managed by the window manager until the client explicitly moves it to
> the withdrawn state.  While it is managed, it will either be in the
> visible state, meaning it is mapped (and presumably at least partially
> visible), or it will be in the iconic state, and unmapped.  It is the
> window manager that decides at all times in which of these two states a
> window will be, although a client can request a transition from visible
> to iconic or from iconic to visible.  The window manager should mark a
> window as iconified whenever it will not be visible for any reason, so
> that the client knows that it need not waste any resources redrawing it;
> a window should be marked iconified, therefore, when it is
> shaded/"rolled up" or not part of the current workspace, or on an
> unselected tab, in addition to when the user explicitly "iconifies" it.
> 
> In my tiling window manager, for instance, if a new window is opened or
> selected, if there is not enough space, the least recently used window
> will be automatically shaded/"rolled up", and therefore iconified.  I
> would still like it to be possible, though, for emacs to focus an
> iconified frame (and cause it to become visible).

But it should not make any difference for the client whether the window
was iconified explicitly or just "shaded".

  reply	other threads:[~2007-09-07 18:56 UTC|newest]

Thread overview: 91+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-05  5:53 mouse-autoselect-window Drew Adams
2007-09-05 10:36 ` mouse-autoselect-window Robert J. Chassell
2007-09-05 10:49   ` mouse-autoselect-window David Kastrup
2007-09-05 12:56     ` mouse-autoselect-window Stephen Berman
2007-09-05 16:49       ` mouse-autoselect-window Robert J. Chassell
2007-09-05 22:46         ` mouse-autoselect-window Drew Adams
2007-09-05 23:08           ` mouse-autoselect-window Jason Rumney
2007-09-06 16:36             ` mouse-autoselect-window Drew Adams
2007-09-06 17:23               ` mouse-autoselect-window martin rudalics
2007-09-06 20:05                 ` mouse-autoselect-window David Kastrup
2007-09-06 21:12                   ` mouse-autoselect-window Jason Rumney
2007-09-06 18:42               ` mouse-autoselect-window Davis Herring
2007-09-07  3:28               ` mouse-autoselect-window Jeremy Maitin-Shepard
2007-09-07  8:26                 ` mouse-autoselect-window Eli Zaretskii
2007-09-07  8:58                   ` mouse-autoselect-window martin rudalics
2007-09-07 15:54                     ` mouse-autoselect-window Davis Herring
2007-09-07 18:21                       ` mouse-autoselect-window Eli Zaretskii
2007-09-07 19:46                         ` mouse-autoselect-window Davis Herring
2007-09-08  7:05                           ` mouse-autoselect-window Eli Zaretskii
2007-09-08  8:08                             ` mouse-autoselect-window Jan Djärv
2007-09-08  0:46                         ` mouse-autoselect-window Jason Rumney
2007-09-08  7:00                           ` mouse-autoselect-window Eli Zaretskii
2007-09-08  9:31                             ` mouse-autoselect-window martin rudalics
2007-09-08 20:56                             ` mouse-autoselect-window Jason Rumney
2007-09-07 18:20                     ` mouse-autoselect-window Eli Zaretskii
2007-09-07  8:32                 ` mouse-autoselect-window martin rudalics
2007-09-07 17:01                   ` mouse-autoselect-window Jeremy Maitin-Shepard
2007-09-07 18:56                     ` martin rudalics [this message]
2007-09-08  7:53                     ` mouse-autoselect-window Jan Djärv
2007-09-06  3:04           ` mouse-autoselect-window Robert J. Chassell
2007-09-06 16:35             ` mouse-autoselect-window Drew Adams
2007-09-05 18:04       ` mouse-autoselect-window martin rudalics
2007-09-05 22:46         ` mouse-autoselect-window Drew Adams
2007-09-06  9:35           ` mouse-autoselect-window martin rudalics
2007-09-06 16:37             ` mouse-autoselect-window Drew Adams
2007-09-06 17:28               ` mouse-autoselect-window martin rudalics
2007-09-06 21:40                 ` mouse-autoselect-window Drew Adams
2007-09-06 20:58               ` mouse-autoselect-window Jason Rumney
2007-09-06 21:11                 ` mouse-autoselect-window Drew Adams
2007-09-07  0:02                   ` mouse-autoselect-window Stefan Monnier
2007-09-07  6:45                     ` mouse-autoselect-window Leo
2007-09-07  8:33                       ` mouse-autoselect-window Andreas Schwab
2007-09-06 12:01         ` mouse-autoselect-window Stephen Berman
2007-09-06 12:22           ` mouse-autoselect-window martin rudalics
2007-09-06 14:17             ` mouse-autoselect-window Stephen Berman
2007-09-06 15:10               ` mouse-autoselect-window martin rudalics
2007-09-06 16:00                 ` mouse-autoselect-window Stephen Berman
2007-09-06 17:31                   ` mouse-autoselect-window martin rudalics
2007-09-06 18:20                     ` mouse-autoselect-window Stephen Berman
2007-09-06 20:46                       ` mouse-autoselect-window martin rudalics
2007-09-06 22:58                         ` mouse-autoselect-window Stephen Berman
2007-09-07  6:51                           ` mouse-autoselect-window martin rudalics
2007-09-07  7:33                             ` mouse-autoselect-window Drew Adams
2007-09-07  8:09                               ` mouse-autoselect-window Stephen Berman
2007-09-07 12:31                                 ` mouse-autoselect-window Robert J. Chassell
2007-09-07  8:38                               ` mouse-autoselect-window martin rudalics
2007-09-07  8:09                             ` mouse-autoselect-window Stephen Berman
2007-09-07  8:53                               ` mouse-autoselect-window martin rudalics
2007-09-07  9:16                                 ` mouse-autoselect-window Stephen Berman
2007-09-07  9:33                                   ` mouse-autoselect-window martin rudalics
2007-09-06 14:30           ` mouse-autoselect-window Stefan Monnier
2007-09-06 15:44             ` mouse-autoselect-window Stephen Berman
2007-09-18  7:02       ` mouse-autoselect-window martin rudalics
2007-09-18 10:16         ` mouse-autoselect-window Stephen Berman
2007-09-18 14:07           ` mouse-autoselect-window martin rudalics
2007-09-18 21:00             ` mouse-autoselect-window Stephen Berman
2007-09-18 14:41         ` mouse-autoselect-window Drew Adams
2007-09-18 15:34           ` mouse-autoselect-window martin rudalics
2007-09-18 16:10             ` mouse-autoselect-window Drew Adams
2007-09-18 16:47               ` mouse-autoselect-window martin rudalics
2007-09-18 17:04                 ` mouse-autoselect-window Drew Adams
2007-09-18 21:01                 ` mouse-autoselect-window Stephen Berman
2007-09-28  9:11                   ` mouse-autoselect-window martin rudalics
2007-09-29 21:45                     ` mouse-autoselect-window Glenn Morris
2007-09-30  8:47                       ` mouse-autoselect-window martin rudalics
2007-09-30 21:48                         ` mouse-autoselect-window Glenn Morris
2007-10-01  6:29                           ` mouse-autoselect-window martin rudalics
2007-11-07 12:18                     ` mouse-autoselect-window Stephen Berman
2007-11-07 13:13                       ` mouse-autoselect-window martin rudalics
2007-11-07 14:30                         ` mouse-autoselect-window Stephen Berman
2007-11-07 15:32                           ` mouse-autoselect-window martin rudalics
2007-09-18 22:24             ` mouse-autoselect-window Jason Rumney
2007-09-18 22:46               ` mouse-autoselect-window Drew Adams
2007-09-18 23:13                 ` mouse-autoselect-window Jason Rumney
2007-09-18 23:24                   ` mouse-autoselect-window Drew Adams
2007-09-19  4:02                   ` mouse-autoselect-window Eli Zaretskii
2007-09-05 17:33 ` mouse-autoselect-window Eli Zaretskii
2007-09-05 17:52   ` mouse-autoselect-window Eli Zaretskii
     [not found] <31071.1189309764@cs.sunysb.edu>
2007-09-09  9:43 ` mouse-autoselect-window Jason Rumney
2007-09-09 13:52   ` mouse-autoselect-window Michael Kifer
2007-09-09 14:09     ` mouse-autoselect-window Jason Rumney

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=46E19EDF.4040600@gmx.at \
    --to=rudalics@gmx.at \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=jbms@cmu.edu \
    --cc=jeremy@jeremyms.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).