all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#21864: 25.0.50; `raise-frame' steals focus some time after being called if the frame was iconified
  2015-11-08 18:33 bug#21864: 25.0.50; `raise-frame' steals focus some time after being called if the frame was iconified Artur Malabarba
@ 2015-11-08 18:24 ` martin rudalics
  2015-11-08 23:49   ` Artur Malabarba
  0 siblings, 1 reply; 3+ messages in thread
From: martin rudalics @ 2015-11-08 18:24 UTC (permalink / raw)
  To: Artur Malabarba, 21864

 >      (let ((cur (selected-frame)))
 >        (raise-frame other-frame)
 >        (select-frame cur))
 >
 > Result: Even though that snippet ends with `(select-frame cur)', focus
 > is left on `other-frame'.

‘raise-frame’ requires an interaction with the window manager.  If the
latter decides that raising a minimized frame will give focus to that
frame that's it.

You might want to look into bug#745 where you can find many references
to window manager behaviors and older discussions on emacs-devel.

martin






^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#21864: 25.0.50; `raise-frame' steals focus some time after being called if the frame was iconified
@ 2015-11-08 18:33 Artur Malabarba
  2015-11-08 18:24 ` martin rudalics
  0 siblings, 1 reply; 3+ messages in thread
From: Artur Malabarba @ 2015-11-08 18:33 UTC (permalink / raw)
  To: 21864


1. On a graphical session, do the following:

    (setq other-frame (make-frame))

2. Iconify (minimize) the newly created frame. 

3. Run the following:

    (let ((cur (selected-frame)))
      (raise-frame other-frame)
      (select-frame cur))

Result: Even though that snippet ends with `(select-frame cur)', focus
is left on `other-frame'.


For comparison, try something else:

1. (setq other-frame (make-frame))

2. Switch back to the original frame, and make sure it is covering the newly created frame.

3. Run the following:

    (let ((cur (selected-frame)))
      (raise-frame other-frame)
      (select-frame cur))

Result: other-frame is correctly raised while focus is correctly left on the original frame.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#21864: 25.0.50; `raise-frame' steals focus some time after being called if the frame was iconified
  2015-11-08 18:24 ` martin rudalics
@ 2015-11-08 23:49   ` Artur Malabarba
  0 siblings, 0 replies; 3+ messages in thread
From: Artur Malabarba @ 2015-11-08 23:49 UTC (permalink / raw)
  To: martin rudalics; +Cc: 21864

[-- Attachment #1: Type: text/plain, Size: 698 bytes --]

On 8 Nov 2015 6:24 pm, "martin rudalics" <rudalics@gmx.at> wrote:
>
> >      (let ((cur (selected-frame)))
> >        (raise-frame other-frame)
> >        (select-frame cur))
> >
> > Result: Even though that snippet ends with `(select-frame cur)', focus
> > is left on `other-frame'.
>
> ‘raise-frame’ requires an interaction with the window manager.  If the
> latter decides that raising a minimized frame will give focus to that
> frame that's it.
>
> You might want to look into bug#745 where you can find many references
> to window manager behaviors and older discussions on emacs-devel.

Yeah, that makes sense. Thanks for the reference.
I guess we can close this then.

[-- Attachment #2: Type: text/html, Size: 935 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-11-08 23:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-08 18:33 bug#21864: 25.0.50; `raise-frame' steals focus some time after being called if the frame was iconified Artur Malabarba
2015-11-08 18:24 ` martin rudalics
2015-11-08 23:49   ` Artur Malabarba

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.