From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#44961: 28.0.50; [feature/pgtk] frame-position returns incorrect information Date: Mon, 21 Feb 2022 12:17:18 +0100 Message-ID: <874k4slb9d.fsf@gmail.com> References: <87tut6kj72.fsf@gmail.com> <87ley5r5qs.fsf@gnus.org> <87ilt9mhu1.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9621"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Po Lu , 44961@debbugs.gnu.org, Lars Ingebrigtsen To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 21 12:20:53 2022 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 1nM6kN-0002Gd-L3 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Feb 2022 12:20:51 +0100 Original-Received: from localhost ([::1]:45206 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nM6kM-00060A-OQ for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Feb 2022 06:20:50 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40586) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nM6he-0004IT-Cb for bug-gnu-emacs@gnu.org; Mon, 21 Feb 2022 06:18:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41302) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nM6hd-0001We-Ql for bug-gnu-emacs@gnu.org; Mon, 21 Feb 2022 06:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nM6hd-0002Xr-NK for bug-gnu-emacs@gnu.org; Mon, 21 Feb 2022 06:18:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Feb 2022 11:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44961 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 44961-submit@debbugs.gnu.org id=B44961.16454422489742 (code B ref 44961); Mon, 21 Feb 2022 11:18:01 +0000 Original-Received: (at 44961) by debbugs.gnu.org; 21 Feb 2022 11:17:28 +0000 Original-Received: from localhost ([127.0.0.1]:35199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nM6h6-0002X4-3r for submit@debbugs.gnu.org; Mon, 21 Feb 2022 06:17:28 -0500 Original-Received: from mail-wr1-f50.google.com ([209.85.221.50]:42672) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nM6h3-0002Wq-Ux for 44961@debbugs.gnu.org; Mon, 21 Feb 2022 06:17:26 -0500 Original-Received: by mail-wr1-f50.google.com with SMTP id h6so26414567wrb.9 for <44961@debbugs.gnu.org>; Mon, 21 Feb 2022 03:17:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version; bh=Spp/5X3HYQ5UvXjSHHMKTuXlbNQJcUe7plmHcig48ko=; b=eLbfCKoLXeQrbKIw+inf3wkMIyjs80CIkBvYiVR9lkEJ0pjI4fNvdiLUvkdaePLhBT ihLEjXcoo1JIrnI/Bx4kfBYRpXPqoXqNSaU1Cf3EF9j7PLX7VIcHfI6ZXtr4yc/z5YwS S8LooVzQlNJSJktcdiWzkZn2PnmemW8bQWMh/q9JpdXADeEAzRn690aE6cBhGz3pKqFi KxpCEAVLKhcE7dBzBjPiLmPozviCCrbQ3lMS0elMAsg1zDmgfFfFMtw0c00v+1XmIno9 25ZuKMyTGjqsZSvHW5J+z53jYqVY3Q4qqIxbv0ZsN2ZOcDrXlw+Ot4rtsDR4L7B705c4 U6Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version; bh=Spp/5X3HYQ5UvXjSHHMKTuXlbNQJcUe7plmHcig48ko=; b=nuZ8aYaz4MO/C0nA4AcSuu21qCvCSLswT2q7GlGoNqVTLtLFnZ7NfCWGRygcNoT8CV 6tXPvDPlbD4pZz5tdgDa+aJTEgxekXnaXfnpUzJUriW09XVj84xo0GXKqQzFL46ruRxJ ZFTQPiLNolBTTOHy74GFLkcSrNfgkmmVSgXoGkkV2WhQbpiIzIWx/LT/XjuP2IWYJokz zPv0VNrVe/KgHHgNIBl+isgdJknEpudLpBazkiIOclosm34STQKLoDgd9u4q5OC6xgl8 gYl0QzhVUDWl1X7DRNTgl6m0ZGvWtLfqGgKegZcHCpNMXzhFZ5Kr84Yb3c+KXkdX8hRG sNhQ== X-Gm-Message-State: AOAM533IvrNXhSbFKX5aTMI00HjlELIWqP1J+rBhFbTvVARaLCl9XLm1 hDObYcwvU0BjorZ15VowQM8= X-Google-Smtp-Source: ABdhPJypGdLd5fLpnfAVWzT2SwGsCJcCGSeKpF1mI2gU7ofm4utY6FbreECrYgwCCLCmxSt4to2TpQ== X-Received: by 2002:adf:e952:0:b0:1e3:39ed:d990 with SMTP id m18-20020adfe952000000b001e339edd990mr15513806wrn.215.1645442239899; Mon, 21 Feb 2022 03:17:19 -0800 (PST) Original-Received: from rltb ([2a01:e0a:3f3:fb50:ab2f:e33d:8961:3965]) by smtp.gmail.com with ESMTPSA id n15-20020a05600c3b8f00b0037bc64fbd17sm7411959wms.11.2022.02.21.03.17.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 03:17:19 -0800 (PST) In-Reply-To: <87ilt9mhu1.fsf@gmx.net> (Stephen Berman's message of "Sun, 20 Feb 2022 20:57:42 +0100") 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" Xref: news.gmane.io gmane.emacs.bugs:227320 Archived-At: >>>>> On Sun, 20 Feb 2022 20:57:42 +0100, Stephen Berman said: Stephen> On Sun, 20 Feb 2022 15:07:39 +0100 Lars Ingebrigtsen wrote: >> Robert Pluim writes: >> >>> This is under Gnome Shell on Debian 10, which I think uses mutter as a >>> window manager: >>> >>> ./emacs -Q # The frame is near the top-left, I move it to the right >>> bottom quadrant >>> (pgtk-backend-display-class) => "GdkWaylandDisplay" >>> (frame-position) => (0 . 0) >>> >>> GDK_BACKEND=x11 ./emacs -Q >>> (pgtk-backend-display-class) => "GdkX11Display" >>> (frame-position) => (0 . 0) >>> >>> ./emacs -Q # emacs master branch >>> (frame-position) => (2136 . 549) >> >> (I'm going through old bug reports that unfortunately weren't resolved >> at the time.) >> >> I tried this on the current master with --with-pgtk, and >> (frame-position) seems to report the correct results for me on >> Debian/bookworm under Gnome shell (with X). >> >> Are you still seeing this problem on the current trunk? Stephen> This sounds like bug#52697, which was fixed on master in 855928082b and Stephen> 9966d9574b. It does, but I think that only fixed part of the issue. With GDK_BACKEND=x11, I get the right results, but with the Wayland backend I always get "(26 . 23)" wherever I place the frame(although if I maximize the frame I get "(0 . 0)" This might be an effect of the Wayland coordinate system insanity that they've foisted on the rest of the world. Robert --