GNU bug report logs - #31920
26.1; frame appears in wrong part of desktop after restoring frameset from fullscreen

Previous Next

Package: emacs;

Reported by: Jonathan Kyle Mitchell <kyle <at> jonathanmitchell.org>

Date: Thu, 21 Jun 2018 03:13:01 UTC

Severity: normal

Found in version 26.1

Full log


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

From: martin rudalics <rudalics <at> gmx.at>
To: Robert Pluim <rpluim <at> gmail.com>
Cc: 31920 <at> debbugs.gnu.org, Jonathan Kyle Mitchell <kyle <at> jonathanmitchell.org>
Subject: Re: bug#31920: 26.1; frame appears in wrong part of desktop after
 restoring frameset from fullscreen
Date: Fri, 22 Jun 2018 10:55:50 +0200
> I see this on my Ubuntu 16.04 box, also running KDE, but only if I go
> through the restore cycle twice. Also, if I restore frameset a again,
> the frame ends up in the right place, ie:
>
> restore a -> OK
> restore b -> OK
> restore a -> NOK
> restore a -> OK

Confirmed.  The transition from b to a via C-x r j a always moves the
frame to the top/left corner of the screen here.

IIUC C-x r f runs the command 'frameset-to-register' which stores a
"framset" in a register.  C-x r j runs the command 'jump-to-register'
which does _not_ restore a frame's state via 'frameset--restore-frame'
but goes to 'set-frame-configuration' instead.  Apparently, framesets
and frame configurations differ in a couple of minor aspects and the
fullscreen state is one of them.

We probably should replace

    (set-frame-configuration (car val) (not delete))

by something like

    (frameset-restore (car val))

but my knowledge of constructs like 'cl-defmethod' and 'cl-defun' is
too limited to play around with such a change.  Maybe someone wants to
give it at try, it should be a rather low-hanging fruit.

> Neither of those make any difference for me, nor does using
> toggle-frame-maximized.

Obviously so because 'frameset--restore-frame' does not get called in
the first place.

Thanks for investigating, martin




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

Previous Next


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