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#25851: 25.2; GTK warning when starting Emacs when desktop file has more than one frame Date: Fri, 24 Mar 2017 10:01:33 +0100 Message-ID: <58D4E06D.8020708@gmx.at> References: <87a89c51qb.fsf@moondust.localdomain> <58D3804E.5030109@gmx.at> <4f44f0fb-96fe-4326-8a0c-c87e4ef17613@default> 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 1490346142 21930 195.159.176.226 (24 Mar 2017 09:02:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 24 Mar 2017 09:02:22 +0000 (UTC) To: Drew Adams , "N. Jackson" , 25851@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 24 10:02:15 2017 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 1crL6p-0004j9-1V for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Mar 2017 10:02:11 +0100 Original-Received: from localhost ([::1]:60327 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1crL6s-0007IB-Ju for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Mar 2017 05:02:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36375) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1crL6j-0007FO-E9 for bug-gnu-emacs@gnu.org; Fri, 24 Mar 2017 05:02:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1crL6g-0004Jx-BZ for bug-gnu-emacs@gnu.org; Fri, 24 Mar 2017 05:02:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43514) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1crL6g-0004Jg-8m for bug-gnu-emacs@gnu.org; Fri, 24 Mar 2017 05:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1crL6f-0002bN-Q7 for bug-gnu-emacs@gnu.org; Fri, 24 Mar 2017 05:02: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: Fri, 24 Mar 2017 09:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25851 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25851-submit@debbugs.gnu.org id=B25851.14903461109964 (code B ref 25851); Fri, 24 Mar 2017 09:02:01 +0000 Original-Received: (at 25851) by debbugs.gnu.org; 24 Mar 2017 09:01:50 +0000 Original-Received: from localhost ([127.0.0.1]:41710 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1crL6T-0002ae-Nm for submit@debbugs.gnu.org; Fri, 24 Mar 2017 05:01:49 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:61448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1crL6R-0002aO-Kp for 25851@debbugs.gnu.org; Fri, 24 Mar 2017 05:01:48 -0400 Original-Received: from [192.168.1.100] ([213.162.68.120]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M1msU-1c365l3UQU-00tnMT; Fri, 24 Mar 2017 10:01:35 +0100 In-Reply-To: <4f44f0fb-96fe-4326-8a0c-c87e4ef17613@default> X-Provags-ID: V03:K0:WfklJZTdHedanytK6iIhHU1i3x2P7tUJFlNBKh4M+GEcDEYtyg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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:130869 Archived-At: > If frame positions are not restored in general (again, modulo > any necessary exceptions that might exist) that would suggest > that there is little point in saving and restoring frames. > > Size and position are among the most important attributes of a > frame, and if a user bothers to use multiple frames then it is > almost certainly the case that their sizes and positions are > important. Jan who was responsible for the implementation of this in the past advocated the use of Extended Window Manager Hints where you can read (in the section about _NET_WM_FULL_PLACEMENT) that Clients, when they detect that this hint is supported, SHOULD NOT abuse or often even use PPosition and USPosition hints for requesting placement. Rationale: Window managers can often perform better placement (that may be even configurable) for windows than the application. However at the time of writing this it is problematic for Window managers to decide when to use them because many applications abuse positioning flags and/or provide unnecessary default positions. So it's up to us to either go this direction or do our own placement. I neither use desktop saving nor explicit window positioning so I have no preference. But as this bug demonstrates, it seems that we may have to choose one or the other eventually. Otherwise, we will sooner or later end up in situations that are more troublesome than the present one. martin