From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: soliidne@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#67753: 28.2, 29.1: Making frame invisible always affects frame position parameters Date: Wed, 10 Jan 2024 12:25:19 +0200 Message-ID: References: <83plz6mjua.fsf@gnu.org> <87bkaqxrwg.fsf@yahoo.com> <83le9le1bh.fsf@gnu.org> <83ttnmnust.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000bbef28060e94d916" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12132"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Po Lu , 67753@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 10 13:05:18 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rNXKf-0002v5-TV for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Jan 2024 13:05:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNXKM-0003Uo-G4; Wed, 10 Jan 2024 07:04:58 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rNXKK-0003U3-AD for bug-gnu-emacs@gnu.org; Wed, 10 Jan 2024 07:04:56 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rNXKI-00054d-91 for bug-gnu-emacs@gnu.org; Wed, 10 Jan 2024 07:04:55 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rNXKP-0003pU-Kr for bug-gnu-emacs@gnu.org; Wed, 10 Jan 2024 07:05:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: soliidne@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Jan 2024 12:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67753 X-GNU-PR-Package: emacs Original-Received: via spool by 67753-submit@debbugs.gnu.org id=B67753.170488826114660 (code B ref 67753); Wed, 10 Jan 2024 12:05:01 +0000 Original-Received: (at 67753) by debbugs.gnu.org; 10 Jan 2024 12:04:21 +0000 Original-Received: from localhost ([127.0.0.1]:42412 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNXJk-0003oL-Bl for submit@debbugs.gnu.org; Wed, 10 Jan 2024 07:04:21 -0500 Original-Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]:61792) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNVmK-0007Gs-MV for 67753@debbugs.gnu.org; Wed, 10 Jan 2024 05:25:45 -0500 Original-Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-55818b733f7so1671139a12.3 for <67753@debbugs.gnu.org>; Wed, 10 Jan 2024 02:25:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704882331; x=1705487131; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=WBiQd7L4w9tWgPiYcuH2mkTBrMLIWBJUk13le++t5Ww=; b=knSmjAAEk5Ix6IBY8OlkIh1csdq0LD+5SpE3/S8mCvd2fDVqaL82kJV6MNAs8Fr17t eQAyC54gYPucXUmtLm+HZ1Ftjj7mRbU+2CEae/qLbOI2cRK4Fuw1KyOZr9Qr8A8bZ6Xa ZC1L6hqy0R2jaamiM6uz2zlc21Y1F7al57Q43wD60hK5NGT1XGDL6GPkiGjpNAQXeuH+ SW5HCq1t2/ILG+ir9ZH9WdSO1jwDCo2gYFm7z6p1COYdfGfuRR2oq0XM7sANmRBySEX+ fQMuxkJZUKW5riPIohEenO9PIcnM7cFeawi2ZoKM1edITOvaUIOF/GYg6T4hz6XOjCOv isCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704882331; x=1705487131; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WBiQd7L4w9tWgPiYcuH2mkTBrMLIWBJUk13le++t5Ww=; b=rQLoJH1/dsUe5w4vbs58CIlkyPZ4z4qOKYzXTtzUnAfZfXRjnsXysuh/OVWaJfn9SG IyWUIO7489m+YkZtygyUw+Zuf64K/7Wi6DgLs1vhtsKdw0eMNbjwvq3D5twFfWjhtdOB aFPfuj00dDb5o9wiTL37Ibgr60XyFay+t4j41tvhHrOCWCiZ3QlrM1TnytasdxkPO+MV /FwAxMX9UgfTOkGUFurgyYBxl8Ey2A2b9TnkT9Z+F+kvOb7Yz5d7iwts/dB+NT/H2Qdp IsK+NbyKhvOESQ4Ip+vY+5UPfHTBfFlqW6d0Ujw7Xuu2UIsX633hmhnxcl8l9ZyJ/7tu 7mMQ== X-Gm-Message-State: AOJu0YzppYYNW1wKjICK0YdBQixITkkSWXEE/4t85aE38fFwo4UzklI3 9TgTmwAW1rYU8ViduT3JE3PV7O39j7MnTX45Olw= X-Google-Smtp-Source: AGHT+IHWEhuhCI+EvYAYxj8oHT1iYmpJCd60LzNDyBanuNjvZ9k6q+k8pH6qthUPv7Wnbt6pdgFZ806+YK++lEPLC2g= X-Received: by 2002:a50:8e56:0:b0:557:8d37:2e8d with SMTP id 22-20020a508e56000000b005578d372e8dmr363644edx.15.1704882331183; Wed, 10 Jan 2024 02:25:31 -0800 (PST) In-Reply-To: <83ttnmnust.fsf@gnu.org> X-Mailman-Approved-At: Wed, 10 Jan 2024 07:04:19 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:277733 Archived-At: --000000000000bbef28060e94d916 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi ! Probable bug in void xfns.c =E2=86=92 x_real_pos_and_offsets interpreting _NET_FRAME_EXTENTS set in Application Window Properties by WM. Current visible Emacs frame parameters: _NET_FRAME_EXTENTS(CARDINAL) =3D 5, 5, 29, 5 That means these are Emacs frame border and frame title thicknesses. The Window Manager MUST set _NET_FRAME_EXTENTS to the extents of the window's frame. left, right, top and bottom are widths of the respective borders added by the Window Manager. ----- Original Reference: [[ https://specifications.freedesktop.org/wm-spec/1.4/ar01s05.html][Applicatio= n Window Properties]] On Tue, 09 Jan 2024 21:58:10 +0200 Eli Zaretskii wrote: > Ping! Ping! Can we make some progress here, please? > > > Cc: 67753@debbugs.gnu.org > > Date: Sat, 23 Dec 2023 11:05:22 +0200 > > From: Eli Zaretskii > > > > Ping! Po Lu, can we make some progress here? > > > > > From: soliidne@gmail.com > > > Date: Sat, 16 Dec 2023 14:53:47 +0200 > > > Cc: Eli Zaretskii , 67753@debbugs.gnu.org > > > > > > On Sat, 16 Dec 2023 20:18:07 +0800 > > > Po Lu wrote: > > > > > > > Eli Zaretskii writes: > > > > > > > > >> From: soliidne@gmail.com > > > > >> Date: Sun, 10 Dec 2023 19:45:49 +0200 > > > > >> > > > > >> Always for all frames, position constantly affected by: left > > > > >> - 5 and top - 29. It seems like a bug, but it could also be > > > > >> an oversight. Can someone comment please ? > > > > >> > > > > >> Thanks ! > > > > >> > > > > >> xfwm4 4.18.0 > > > > >> xorg-server 21.1.9 > > > > >> Emacs 28.2, 29.1 > > > > >> Archlinux > > > > >> > > > > >> How to reproduce: > > > > >> ################# > > > > >> > > > > >> $ emacs --fg-daemon -Q > > > > >> ... > > > > >> Starting Emacs daemon. > > > > >> $ emacsclient --eval "(make-frame-on-display \":0\")" > > > > >> # > > > > >> $ emacsclient --eval "(frame-position (nth 0 (frame-list)))" > > > > >> (185 . 130) > > > > >> $ emacsclient --eval "(make-frame-invisible (nth 0 > > > > >> (frame-list)) t)" nil > > > > >> $ emacsclient --eval "(frame-position (nth 0 (frame-list)))" > > > > >> (180 . 101) > > > > >> > > > > >> Moving frame to left-top corner > > > > >> ############################### > > > > >> > > > > >> $ emacsclient --eval "(make-frame-visible (nth 0 > > > > >> (frame-list)))" # > > > >> 0x558cf8d7d120> $ emacsclient --eval "(frame-position (nth 0 > > > > >> 0x558cf8d7d120> (frame-list)))" > > > > >> (0 . 0) > > > > >> $ emacsclient --eval "(make-frame-invisible (nth 0 > > > > >> (frame-list)) t)" nil > > > > >> $ emacsclient --eval "(frame-position (nth 0 (frame-list)))" > > > > >> (-5 . -29) > > > > >> $ emacsclient --eval "(make-frame-visible (nth 0 > > > > >> (frame-list)))" # > > > >> 0x558cf8d7d120> $ emacsclient --eval "(frame-position (nth 0 > > > > >> 0x558cf8d7d120> (frame-list)))" > > > > >> (-5 . 0) > > > > >> $ emacsclient --eval "(make-frame-invisible (nth 0 > > > > >> (frame-list)) t)" nil > > > > >> $ emacsclient --eval "(frame-position (nth 0 (frame-list)))" > > > > >> (-10 . -29) > > > > >> $ emacsclient --eval "(make-frame-visible (nth 0 > > > > >> (frame-list)))" # > > > >> 0x558cf8d7d120> $ emacsclient --eval "(frame-position (nth 0 > > > > >> 0x558cf8d7d120> (frame-list)))" > > > > >> (-10 . 0) > > > > > > > > > > Po Lu, any comments? > > > > > > > > Did the OP mention the toolkit Emacs was built with? > > > > > > $ emacsclient --eval "system-configuration-options" > > > "--sysconfdir=3D/etc --prefix=3D/usr --libexecdir=3D/usr/lib > > > --localstatedir=3D/var --with-cairo --with-harfbuzz - > > > -with-libsystemd --with-modules --with-x-toolkit=3Dgtk3 > > > 'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 - pipe -fno-plt > > > -fexceptions -Wp,-D_FORTIFY_SOURCE=3D2 -Wformat > > > -Werror=3Dformat-security -fstack-clash-protection -fcf-protection > > > -g -ffile-prefix-map=3D/build/emacs/src=3D/usr/src/debug/emacs - > > > flto=3Dauto' > > > 'LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now > > > -flto=3Dauto'" > > > > > > > > --000000000000bbef28060e94d916 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi !

Probable bug in void xfns.c =E2=86=92 x_real_pos_and_offsets interpreting _= NET_FRAME_EXTENTS set in Application Window Properties by WM.

Current visible Emacs frame parameters:

_NET_FRAME_EXTENTS(CARDINAL) =3D 5, 5, 29, 5

That means these are Emacs frame border and frame title thicknesses.

The Window Manager MUST set _NET_FRAME_EXTENTS to the extents of the window= 's frame. left, right, top and bottom are widths of the respective bord= ers added by the Window Manager.
-----
Original Reference: [[https://specifications.freedesktop.org/wm-spec/1.4/ar01s05.htm= l][Application Window Properties]]


On Tue, 09 Jan 2024 21:58:10 +0200
Eli Zaretskii <eliz@gnu.org> wrote:

> Ping! Ping!=C2=A0 Can we make some progress here, please?
>
> > Cc: 67753@debbugs.gnu.org
> > Date: Sat, 23 Dec 2023 11:05:22 +0200
> > From: Eli Zaretskii <eliz@gnu.org>
> >
> > Ping!=C2=A0 Po Lu, can we make some progress here?
> >=C2=A0 =C2=A0
> > > From: soliidne@gmail.com
> > > Date: Sat, 16 Dec 2023 14:53:47 +0200
> > > Cc: Eli Zaretskii <eliz@gnu.org>, 67753@debbugs.gnu.o= rg
> > >
> > > On Sat, 16 Dec 2023 20:18:07 +0800
> > > Po Lu <luangruo@yahoo.com> wrote:
> > >=C2=A0 =C2=A0
> > > > Eli Zaretskii <eliz@gnu.org> writes:
> > > >=C2=A0 =C2=A0
> > > > >> From: soliidne@gmail.com
> > > > >> Date: Sun, 10 Dec 2023 19:45:49 +0200
> > > > >>
> > > > >> Always for all frames, position constantly aff= ected by: left
> > > > >> - 5 and top - 29. It seems like a bug, but it = could also be
> > > > >> an oversight. Can someone comment please ?
> > > > >>
> > > > >> Thanks !
> > > > >>
> > > > >> xfwm4 4.18.0
> > > > >> xorg-server 21.1.9
> > > > >> Emacs 28.2, 29.1
> > > > >> Archlinux
> > > > >>
> > > > >> How to reproduce:
> > > > >> #################
> > > > >>
> > > > >> $ emacs --fg-daemon -Q
> > > > >> ...
> > > > >> Starting Emacs daemon.
> > > > >> $ emacsclient --eval "(make-frame-on-disp= lay \":0\")"
> > > > >> #<frame GNU Emacs at Elitebook 0x558cf8d7d1= 20>
> > > > >> $ emacsclient --eval "(frame-position (nt= h 0 (frame-list)))"
> > > > >> (185 . 130)
> > > > >> $ emacsclient --eval "(make-frame-invisib= le (nth 0
> > > > >> (frame-list)) t)" nil
> > > > >> $ emacsclient --eval "(frame-position (nt= h 0 (frame-list)))"
> > > > >> (180 . 101)
> > > > >>
> > > > >> Moving frame to left-top corner
> > > > >> ###############################
> > > > >>
> > > > >> $ emacsclient --eval "(make-frame-visible= (nth 0
> > > > >> (frame-list)))" #<frame GNU Emacs at E= litebook
> > > > >> 0x558cf8d7d120> $ emacsclient --eval "= (frame-position (nth 0
> > > > >> 0x558cf8d7d120> (frame-list)))"
> > > > >> (0 . 0)
> > > > >> $ emacsclient --eval "(make-frame-invisib= le (nth 0
> > > > >> (frame-list)) t)" nil
> > > > >> $ emacsclient --eval "(frame-position (nt= h 0 (frame-list)))"
> > > > >> (-5 . -29)
> > > > >> $ emacsclient --eval "(make-frame-visible= (nth 0
> > > > >> (frame-list)))" #<frame GNU Emacs at E= litebook
> > > > >> 0x558cf8d7d120> $ emacsclient --eval "= (frame-position (nth 0
> > > > >> 0x558cf8d7d120> (frame-list)))"
> > > > >> (-5 . 0)
> > > > >> $ emacsclient --eval "(make-frame-invisib= le (nth 0
> > > > >> (frame-list)) t)" nil
> > > > >> $ emacsclient --eval "(frame-position (nt= h 0 (frame-list)))"
> > > > >> (-10 . -29)
> > > > >> $ emacsclient --eval "(make-frame-visible= (nth 0
> > > > >> (frame-list)))" #<frame GNU Emacs at E= litebook
> > > > >> 0x558cf8d7d120> $ emacsclient --eval "= (frame-position (nth 0
> > > > >> 0x558cf8d7d120> (frame-list)))"
> > > > >> (-10 . 0)=C2=A0 =C2=A0
> > > > >
> > > > > Po Lu, any comments?=C2=A0 =C2=A0
> > > >
> > > > Did the OP mention the toolkit Emacs was built with?=C2= =A0
> > >
> > > $ emacsclient --eval "system-configuration-options"= ;
> > > "--sysconfdir=3D/etc --prefix=3D/usr --libexecdir=3D/us= r/lib
> > > --localstatedir=3D/var --with-cairo --with-harfbuzz -
> > > -with-libsystemd --with-modules --with-x-toolkit=3Dgtk3
> > > 'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 - pipe -f= no-plt
> > > -fexceptions=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0-Wp,-D_FORTIFY= _SOURCE=3D2 -Wformat
> > > -Werror=3Dformat-security -fstack-clash-protection -fcf-prot= ection
> > > -g -ffile-prefix-map=3D/build/emacs/src=3D/usr/src/debug/ema= cs -
> > > flto=3Dauto'
> > > 'LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,relro,-z= ,now
> > > -flto=3Dauto'"=C2=A0
> >
> >
> >
> >=C2=A0 =C2=A0
--000000000000bbef28060e94d916--