GNU bug report logs - #21864
25.0.50; `raise-frame' steals focus some time after being called if the frame was iconified

Previous Next

Package: emacs;

Reported by: Artur Malabarba <bruce.connor.am <at> gmail.com>

Date: Sun, 8 Nov 2015 18:01:02 UTC

Severity: normal

Tags: notabug

Found in version 25.0.50

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Artur Malabarba <bruce.connor.am <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.50;
 `raise-frame' steals focus some time after being called if the frame
 was iconified
Date: Sun, 08 Nov 2015 18:33:34 +0000
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.




This bug report was last modified 9 years and 255 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.