From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#31920: 26.1; frame appears in wrong part of desktop after restoring frameset from fullscreen Date: Thu, 21 Jun 2018 09:16:24 +0200 Message-ID: <5B2B50C8.2090600@gmx.at> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1529565599 1157 195.159.176.226 (21 Jun 2018 07:19:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 21 Jun 2018 07:19:59 +0000 (UTC) To: Jonathan Kyle Mitchell , 31920@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 21 09:19:54 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVtso-0000BK-N8 for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Jun 2018 09:19:54 +0200 Original-Received: from localhost ([::1]:53566 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVtuw-0002xE-0r for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Jun 2018 03:22:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVtq5-0007tN-IZ for bug-gnu-emacs@gnu.org; Thu, 21 Jun 2018 03:17:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVtq2-0006Of-2e for bug-gnu-emacs@gnu.org; Thu, 21 Jun 2018 03:17:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50278) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fVtq1-0006OR-T8 for bug-gnu-emacs@gnu.org; Thu, 21 Jun 2018 03:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fVtq1-0004SH-ND for bug-gnu-emacs@gnu.org; Thu, 21 Jun 2018 03:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Jun 2018 07:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31920 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31920-submit@debbugs.gnu.org id=B31920.152956540217094 (code B ref 31920); Thu, 21 Jun 2018 07:17:01 +0000 Original-Received: (at 31920) by debbugs.gnu.org; 21 Jun 2018 07:16:42 +0000 Original-Received: from localhost ([127.0.0.1]:58175 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVtph-0004Re-MZ for submit@debbugs.gnu.org; Thu, 21 Jun 2018 03:16:41 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:39687) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVtpg-0004RS-Cj for 31920@debbugs.gnu.org; Thu, 21 Jun 2018 03:16:40 -0400 Original-Received: from [192.168.1.101] ([212.95.5.219]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MGzwE-1fQy9b2Pn0-00DqYD; Thu, 21 Jun 2018 09:16:33 +0200 In-Reply-To: X-Provags-ID: V03:K1:58HPXsM03jzefx8q0cFKwe7pVLda6cNASxHDSKhwU+2yD/rvqSb efjVeAoHdFpKCg7x3iiotD5DHvT+Do6AD5jO4g6B+9AXk/iC0tx/0+FAsCubGvRoOAg2cgo fgQDtPEgUVlvQlNv92+RaRQX3cpd8xuGf/Uy2XdR1D2q2GrNTMW4NDOEwJf5uVonKgpJKtX XvyQRSyXkxBl3PpKvPytQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:ndjURKgqj5M=:k+z2DBLSCq0Tb2h2kHPbEz pul5TblDmnGEQUcVwUrZft0oMFtnTJmL+q24yxR4odYWL1wSVf8RkR0UI4sqsk8lEro76q/uU 9qMNsaGRXF/Vbr5WXoMHtYdvY0KcGWWEIP61lasFdsN0GfuTBSG+DgOsBl8PER6LMLxCje5lp Teri3K/A65Ri+O602JoON5H0sWEVKuEoz/+tPv/V+rPV9ZiLvf77ydR5A19kfDbCf64hO+Coc jT/Rv3xXqczU3uCWmj7uHcyaQO5QaRkcO+3+mrCbCoPH8YkKXRokiYhH/H9kfH8DZnhmAXk1l 5S6J5Uj6y0C315eofY77XkP9RfbWCDV04vfgBoX41QHdA75ke5Ty9PFpK158Kam768cbxd5Rg ii8tbG5yD+KTyYuX2mni+XmXZZc/exL3RzI0ki7AK5ti1Kyvw6FVc8BI52MFMjTT0sYnnFUNJ ikboKvBrTCJt2vFr43/QaYwNPWE8oYHJts/28LA8XQ/6aGIJ/kq7bZsrvMMLKrKHsx7zjtO5x 7mJik+LL4XtRun1Ow7kX/7H4P6xMw4GszcA8MK5xUH+TC7GnQRK7WaZA4EK42G+WnThxFAR8Q Z+7TrEf7mTtBGd5T5lq2enhjXwTE8Y60sTJRmsUPvixpJ73vgszF0j3pPtgCt9Uf/bQB8fJRp 9/J+T4GT+gvAMOLTw1trgdPUvfAlXVHu6A7sjFXegFnKONlGUTlZAKzqKbLWSRLrk6GlvGMDd aZsJ0SRuU03HLiJbdFPKfX5GLQp3N3xytRJqvRVCvGZlNYT6UeJJxa4Q1X0KcVpuVB6sIaA7 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:147690 Archived-At: > 1. save a frameset with an unmaximized frame > start from emacs -Q > create a second window with `C-x 2' > use the mouse to move the frame to the right side of the desktop > save the split window frame with `C-x r f a' > > 2. save a frameset with a maximized/fullscreen frame > delete one of the windows with `C-x 1' > press `f11' to make the frame fullscreen > save the fullscreen frame with `C-x r f b' > > 3. restore the unmaximized frameset with `C-x r j a' > After jumping between framesets from register b to register a, the > non-fullscreen frame appears on the opposite (left) side of the desktop > than it was originally. Typing `C-x r j a' a second time moves the frame > to its original location. > > I've reproduced this using Emacs 26.1 in both Windows 10 and Fedora 28 > KDE desktop environments. > > In GNU Emacs 26.1 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.22.30) > of 2018-06-04 built on buildvm-10.phx2.fedoraproject.org Thanks for the report. Here I can't reproduce the behavior you observe on Windows XP even if I modify your recipe in various ways. Maybe someone else can give it a try. Do you really have to split the window in step 1 and delete a window in step 2 to produce the bug? These actions appear unrelated to the behavior you observe since window managers pretty much ignore Emacs windows. Also what happens if, in step 2, you maximize the window instead of making it fullscreen? frameset.el has (modify-frame-parameters frame (if (eq (frame-parameter frame 'fullscreen) fullscreen) ;; Workaround for bug#14949 (assq-delete-all 'fullscreen filtered-cfg) filtered-cfg)) which might affect the behavior on your system. Can you take out this form, reevaluate 'frameset--restore-frame' and see whether anything changes? And maybe you could also try with (when (and force-onscreen ;; FIXME: iconified frames should be checked too, ;; but it is impossible without deiconifying them. (not (eq (frame-parameter frame 'visibility) 'icon))) (frameset-move-onscreen frame force-onscreen)) removed from 'frameset--restore-frame'. martin