From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 13 05:17:57 2013 Received: (at submit) by debbugs.gnu.org; 13 Jan 2013 10:17:57 +0000 Received: from localhost ([127.0.0.1]:57707 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TuKdZ-00033m-5d for submit@debbugs.gnu.org; Sun, 13 Jan 2013 05:17:57 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44328) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TuKdX-00033a-Qd for submit@debbugs.gnu.org; Sun, 13 Jan 2013 05:17:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TuKd5-0002fc-Bq for submit@debbugs.gnu.org; Sun, 13 Jan 2013 05:17:33 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-101.9 required=5.0 tests=BAYES_00, USER_IN_WHITELIST autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:58839) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TuKd5-0002fY-9I for submit@debbugs.gnu.org; Sun, 13 Jan 2013 05:17:27 -0500 Received: from eggs.gnu.org ([208.118.235.92]:55676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TuKcy-0001Ww-KL for bug-gnu-emacs@gnu.org; Sun, 13 Jan 2013 05:17:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TuKcr-0002eA-Pq for bug-gnu-emacs@gnu.org; Sun, 13 Jan 2013 05:17:20 -0500 Received: from ps18281.dreamhost.com ([69.163.218.105]:38592 helo=ps18281.dreamhostps.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TuKcr-0002dz-K8 for bug-gnu-emacs@gnu.org; Sun, 13 Jan 2013 05:17:13 -0500 Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 12EC1258B9E91F for ; Sun, 13 Jan 2013 02:17:11 -0800 (PST) From: Juri Linkov To: bug-gnu-emacs@gnu.org Subject: Frame parameter fullscreen and maximized Organization: JURTA Date: Sun, 13 Jan 2013 12:16:23 +0200 Message-ID: <87txql2xs8.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.0 (-----) There are two problems discovered at http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00203.html 1. On non-GTK builds when the Gnome system key M-f10 maximizes the frame, Emacs doesn't reflect this change in the frame parameter `fullscreen'. The test case that demonstrates this problem: 1. emacs -Q 2. Eval (frame-parameter nil 'fullscreen) => nil 3. Maximize the frame using Gnome system keys. 4. Eval (frame-parameter nil 'fullscreen) => nil 5. Maximize the frame using `M-x toggle-frame-maximized RET' 6. Eval (frame-parameter nil 'fullscreen) => 'maximized Running xprop on the maximized frame outputs: _NET_WM_STATE(ATOM) = _NET_WM_STATE_MAXIMIZED_VERT, _NET_WM_STATE_MAXIMIZED_HORZ 2. On GTK builds there is another problem: evaluating (set-frame-parameter nil 'fullscreen 'fullscreen) modifies the frame parameter `fullscreen' to `fullboth', not to `fullscreen' as requested. In this case xprop outputs: _NET_WM_STATE(ATOM) = _NET_WM_STATE_FULLSCREEN Second call of (set-frame-parameter nil 'fullscreen 'fullscreen) modifies the frame parameter `fullscreen' from `fullboth' to `fullscreen'. So to go to `fullscreen' requires two calls of (set-frame-parameter nil 'fullscreen 'fullscreen) Maybe the second problem could be fixed with a patch like below where `toggle-frame-fullscreen' checks for `fullboth' as an alias for `fullscreen': === modified file 'lisp/frame.el' --- lisp/frame.el 2013-01-03 00:36:36 +0000 +++ lisp/frame.el 2013-01-13 10:13:09 +0000 @@ -1666,7 +1666,7 @@ (defun toggle-frame-maximized () after disabling fullscreen mode. See also `toggle-frame-fullscreen'." (interactive) - (if (eq (frame-parameter nil 'fullscreen) 'fullscreen) + (if (memq (frame-parameter nil 'fullscreen) '(fullscreen fullboth)) (modify-frame-parameters nil `((maximized @@ -1690,10 +1690,10 @@ (defun toggle-frame-fullscreen () (modify-frame-parameters nil `((maximized - . ,(unless (eq (frame-parameter nil 'fullscreen) 'fullscreen) + . ,(unless (memq (frame-parameter nil 'fullscreen) '(fullscreen fullboth)) (frame-parameter nil 'fullscreen))) (fullscreen - . ,(if (eq (frame-parameter nil 'fullscreen) 'fullscreen) + . ,(if (memq (frame-parameter nil 'fullscreen) '(fullscreen fullboth)) (if (eq (frame-parameter nil 'maximized) 'maximized) 'maximized) 'fullscreen))))) From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 04 13:09:38 2015 Received: (at 13426) by debbugs.gnu.org; 4 Jan 2015 18:09:38 +0000 Received: from localhost ([127.0.0.1]:36560 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y7pcP-00042U-Ll for submit@debbugs.gnu.org; Sun, 04 Jan 2015 13:09:37 -0500 Received: from mout.gmx.net ([212.227.17.20]:50360) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y7pcN-00042J-3q for 13426@debbugs.gnu.org; Sun, 04 Jan 2015 13:09:35 -0500 Received: from [188.22.105.237] ([188.22.105.237]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0MeLKt-1YT6YP3Jk7-00QFeM; Sun, 04 Jan 2015 19:09:30 +0100 Message-ID: <54A981D7.7070702@gmx.at> Date: Sun, 04 Jan 2015 19:09:27 +0100 From: martin rudalics MIME-Version: 1.0 To: Juri Linkov , 13426@debbugs.gnu.org Subject: Re: bug#13426: Frame parameter fullscreen and maximized References: <87txql2xs8.fsf@mail.jurta.org> In-Reply-To: <87txql2xs8.fsf@mail.jurta.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:4WwOnVeHuc/dWisvdpWZRIczmLb6wrACxfmbzUD2vEVPIyvNsds DprYlfX3asZ+d49uYI+M67Ci+xN2E88F+zMzspfleAwdfpDeLfiGNN9D9yTGmh96bJUOI0W XAxIgnhbzDQIpNoM5/q+s/hNxlrmHHUs3zIwY1T6VmI7jQndju94nw4/w/MaONiZi4bEqMl IumjGEnwwbPUq9jtM6JFg== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 13426 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Hi Juri > 1. On non-GTK builds when the Gnome system key M-f10 maximizes the frame, > Emacs doesn't reflect this change in the frame parameter `fullscreen'. > > The test case that demonstrates this problem: > > 1. emacs -Q > 2. Eval (frame-parameter nil 'fullscreen) => nil > 3. Maximize the frame using Gnome system keys. > 4. Eval (frame-parameter nil 'fullscreen) => nil > 5. Maximize the frame using `M-x toggle-frame-maximized RET' > 6. Eval (frame-parameter nil 'fullscreen) => 'maximized > > Running xprop on the maximized frame outputs: > _NET_WM_STATE(ATOM) = _NET_WM_STATE_MAXIMIZED_VERT, _NET_WM_STATE_MAXIMIZED_HORZ > > 2. On GTK builds there is another problem: evaluating > > (set-frame-parameter nil 'fullscreen 'fullscreen) > > modifies the frame parameter `fullscreen' to `fullboth', > not to `fullscreen' as requested. In this case xprop outputs: > _NET_WM_STATE(ATOM) = _NET_WM_STATE_FULLSCREEN > > Second call of (set-frame-parameter nil 'fullscreen 'fullscreen) > modifies the frame parameter `fullscreen' from `fullboth' to `fullscreen'. > > So to go to `fullscreen' requires two calls of > (set-frame-parameter nil 'fullscreen 'fullscreen) > > Maybe the second problem could be fixed with a patch like below where > `toggle-frame-fullscreen' checks for `fullboth' as an alias for `fullscreen': Are these issues still valid? There have been lots of changes in this area. martin From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 11 16:02:35 2015 Received: (at 13426-done) by debbugs.gnu.org; 11 Jan 2015 21:02:35 +0000 Received: from localhost ([127.0.0.1]:42912 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YAPed-000707-AN for submit@debbugs.gnu.org; Sun, 11 Jan 2015 16:02:35 -0500 Received: from ps18281.dreamhost.com ([69.163.222.226]:49035 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YAPeW-0006zk-Vz for 13426-done@debbugs.gnu.org; Sun, 11 Jan 2015 16:02:34 -0500 Received: from localhost.linkov.net (ps18281.dreamhostps.com [69.163.222.226]) by ps18281.dreamhostps.com (Postfix) with ESMTP id AD2AC30013E100; Sun, 11 Jan 2015 13:02:27 -0800 (PST) From: Juri Linkov To: martin rudalics Subject: Re: bug#13426: Frame parameter fullscreen and maximized Organization: LINKOV.NET References: <87txql2xs8.fsf@mail.jurta.org> <54A981D7.7070702@gmx.at> Date: Sun, 11 Jan 2015 22:57:18 +0200 In-Reply-To: <54A981D7.7070702@gmx.at> (martin rudalics's message of "Sun, 04 Jan 2015 19:09:27 +0100") Message-ID: <87sifhrq6p.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 13426-done Cc: 13426-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > Are these issues still valid? There have been lots of changes in this > area. Both issues are fixed. However, now I see another related problem: having this code in ~/.emacs, (add-hook 'after-init-hook (lambda () (toggle-frame-maximized)) t) I get a maximized frame visually, but internally with unmaximized dimensions, i.e. mouse avoidance moves the mouse pointer to the middle of the frame instead of the edges (because it uses frame dimensions from unmaximized frame), etc. This is a recent bug that breaks frame dimensions after desktop frame restore. If you already know about this problem, could you please point me to the existing bug report, or should I create a new one? From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 12 02:37:16 2015 Received: (at 13426-done) by debbugs.gnu.org; 12 Jan 2015 07:37:16 +0000 Received: from localhost ([127.0.0.1]:54004 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YAZYq-0002oa-0h for submit@debbugs.gnu.org; Mon, 12 Jan 2015 02:37:16 -0500 Received: from mout.gmx.net ([212.227.17.21]:54788) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YAZYm-0002nw-LG for 13426-done@debbugs.gnu.org; Mon, 12 Jan 2015 02:37:13 -0500 Received: from [93.82.10.177] ([93.82.10.177]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MATlG-1Y3NkY0V6w-00BeOo; Mon, 12 Jan 2015 08:37:04 +0100 Message-ID: <54B3799D.4060709@gmx.at> Date: Mon, 12 Jan 2015 08:37:01 +0100 From: martin rudalics MIME-Version: 1.0 To: Juri Linkov Subject: Re: bug#13426: Frame parameter fullscreen and maximized References: <87txql2xs8.fsf@mail.jurta.org> <54A981D7.7070702@gmx.at> <87sifhrq6p.fsf@mail.linkov.net> In-Reply-To: <87sifhrq6p.fsf@mail.linkov.net> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:Jz9ztHRNztJrsZZuC18VXNMB8qAf74V+rZ41vCekUx6w63rnakB lnejQSv16BoAj7kDbGo16pzCCIQJS8TgrcyE/u+UY+fE4c3deShlnyVsbp8dIElZ82L9JQv uSCJ9iGEr8xP2Swfc8c/Np1VvUZTKsxxOrkARRjRpnCWTgtd9mM0UcpyVcJbkE46HA4CvqV kbvJqJ7ehACrOYxM1lXeA== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 13426-done Cc: 13426-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > Both issues are fixed. Fine. > However, now I see another related problem: having this code in ~/.emacs, > > (add-hook 'after-init-hook > (lambda () > (toggle-frame-maximized)) > t) > > I get a maximized frame visually, but internally with unmaximized dimensions, > i.e. mouse avoidance moves the mouse pointer to the middle of the frame instead > of the edges (because it uses frame dimensions from unmaximized frame), etc. Works normally on Windows here. What does `window--dump-frame' produce on such a frame? Do you get the same behavior when you add (fullscreen . maximized) to `initial-frame-alist' or `default-frame-alist'? > This is a recent bug that breaks frame dimensions after desktop frame restore. Hmmm... How recent? Does desktop frame restore use `toggle-frame-maximized'? > If you already know about this problem, could you please point me to the > existing bug report, or should I create a new one? Please create a new one. martin From unknown Tue Jun 24 01:38:11 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 09 Feb 2015 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator