GNU bug report logs - #36894
Restore frameset focus and selectedness

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Thu, 1 Aug 2019 21:47:02 UTC

Severity: normal

Tags: fixed, patch

Fixed in version 27.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: martin rudalics <rudalics <at> gmx.at>
To: Juri Linkov <juri <at> linkov.net>
Cc: 36894 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: bug#36894: Restore frameset focus and selectedness
Date: Fri, 16 Aug 2019 09:29:16 +0200
> I see that the MATE window manager doesn't select the new frame after
>
>    (make-frame '((no-focus-on-map . t)))
>
> Then I don't understand the logic of make-frame-command:
>
>    (defun make-frame-command ()
>      (interactive)
>      (if (display-graphic-p)
>          (make-frame)
>        (select-frame (make-frame))))
>
> On a graphic display it doesn't select the new frame explicitly,
> maybe on the assumption that all window managers should select it
> afterwards?

IIUC it intentionally doesn't care and doesn't make any guarantees.
See the info on 'make-frame':

     This function itself does not make the new frame the selected
     frame.  *Note Input Focus::.  The previously selected frame remains
     selected.  On graphical terminals, however, the windowing system
     may select the new frame for its own reasons.

martin




This bug report was last modified 5 years and 361 days ago.

Previous Next


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