From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: modify-frame-parameters with floating point offsets Date: Tue, 03 Apr 2018 23:50:40 +0200 Message-ID: <87r2nw0xjj.fsf@gmail.com> References: <5AC3232D.1020107@gmx.at> <874lksy9vy.fsf@gmail.com> <5AC35626.2070700@gmx.at> <877epowjq9.fsf@gmail.com> <87fu4c9sci.fsf_-_@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1522792166 28879 195.159.176.226 (3 Apr 2018 21:49:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 3 Apr 2018 21:49:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 03 23:49:22 2018 Return-path: Envelope-to: ged-emacs-devel@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 1f3Tnt-0007Nz-La for ged-emacs-devel@m.gmane.org; Tue, 03 Apr 2018 23:49:21 +0200 Original-Received: from localhost ([::1]:38730 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f3Tpz-00070T-2Z for ged-emacs-devel@m.gmane.org; Tue, 03 Apr 2018 17:51:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f3TpK-000705-6V for emacs-devel@gnu.org; Tue, 03 Apr 2018 17:50:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f3TpF-0002Mb-7V for emacs-devel@gnu.org; Tue, 03 Apr 2018 17:50:50 -0400 Original-Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]:33145) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f3TpF-0002MP-04 for emacs-devel@gnu.org; Tue, 03 Apr 2018 17:50:45 -0400 Original-Received: by mail-wm0-x232.google.com with SMTP id o23so18298235wmf.0 for ; Tue, 03 Apr 2018 14:50:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-followup-to:mail-copies-to :gmane-reply-to-list:date:message-id:mime-version :content-transfer-encoding; bh=1Am4RM5lB5pFci4xGhy49AwZsZ/oFmvoKR8yOX+fe/M=; b=SeW0f2b/w7UV+1XnNIoeAE/kHf2SkWq+fvI8Gr4lwYBVHsOXc2+EgeiikuiJw2plOI T27uRp7R+oR1I6ncddPNe/qAjeTDn0C7OV3DSA7gpildDPf2HhZG9TfmjD7XEOXyMhlP CDaMvpwLBp2FDu8jjeqUQny7GZlYo3un0RVcxSNaICrzqyw3tuNIL25rhZ2ASI958ymM XA+9gIvkdDDkItiJMtApwAD26hpMATENQhAOCXF03qz+c0OAVZpSlSpogygsL3rvdh1x V6FQjRh4OP7sRlxJljFL3V3kzEGiIqDIKV+RIDihbNiQZzhtg1Ejnr5nypF7HlZ5Aw87 /LaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-followup-to :mail-copies-to:gmane-reply-to-list:date:message-id:mime-version :content-transfer-encoding; bh=1Am4RM5lB5pFci4xGhy49AwZsZ/oFmvoKR8yOX+fe/M=; b=exH21Wsuw2Cs6nRrMk02qARHYJcz1K1dV+43lqzEER+D2pMLfUEOSwXjBiXHuwoz8m c8nLUvdw6NfoHkYEBys/+gAbTMp7Ll1y5h9JkQkhZH+fdTo9CT3NtGFPp3ZB4rxxY0qe 2CwFOtVj1gDRaOLuO9jPeaK+QQZZN2khlQgGg6hbku97IHeguJX32EVX63oDpEtNvmA5 JRvjTZSPcek+/ptqE0nLo6oXsejzHq1TeSlrswJqsbdiqoKxmSwAyM2Qkybike4Pm+aD wFH21unrsBNcnwzbEiwtx3b26Va+xg9gk0d/sjhnURY9609NN7AINRkKdrh7jtIeSdmv 6OsQ== X-Gm-Message-State: ALQs6tDbhZzDGrne56dfVsuo+MeCx6boQrYyXCE1LOmFhm7O2OLk2X0Y FYYOAHosv1Bjk8t3A/LAtLGgBFu5cfU= X-Google-Smtp-Source: AIpwx4+aGSgByIovvlzhc5tShU9kt/dOhW+Zoy1ODVy7hOdNjLjQ4dSJBgl6QT+/XC6Pv5TZWw8csQ== X-Received: by 10.28.107.5 with SMTP id g5mr5904751wmc.133.1522792242458; Tue, 03 Apr 2018 14:50:42 -0700 (PDT) Original-Received: from rpluim-ubuntu (vav06-1-78-207-202-134.fbx.proxad.net. [78.207.202.134]) by smtp.gmail.com with ESMTPSA id s21sm2480305wra.66.2018.04.03.14.50.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Apr 2018 14:50:41 -0700 (PDT) Mail-Followup-To: emacs-devel@gnu.org Mail-Copies-To: never Gmane-Reply-To-List: yes X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::232 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:224286 Archived-At: Robert Pluim writes: > Robert Pluim writes: > >>> Probably a problem with calculating the decorations. Does >>> (frame-geometry) return "reasonable" values for your frame? > > OK, is this normal? > > emacs -Q > (modify-frame-parameters nil '((left . 0.0))) > (frame-geometry) > > =3D> ((outer-position -20 . 188) (outer-size 1208 . 1226) > (external-border-size 20 . 20) (outer-border-width . 0) > (title-bar-size 0 . 70) (menu-bar-external . t) (menu-bar-size 1168 > . 24) (tool-bar-external . t) (tool-bar-position . top) (tool-bar-size > 1168 . 42) (internal-border-width . 0)) > > The frame is visually flush with the left edge of the screen, but > frame-geometry claims it=CA=BCs at -20 ? > > For comparison, after toggle-frame-fullscreen > > ((outer-position 0 . 0) (outer-size 3840 . 2160) (external-border-size > 0 . 0) (outer-border-width . 0) (title-bar-size 0 . 0) > (menu-bar-external . t) (menu-bar-size 3840 . 24) (tool-bar-external > . t) (tool-bar-position . top) (tool-bar-size 3840 . 42) > (internal-border-width . 0)) > > So is this the window manager lying to us? This is with XWayland, I=CA=BC= ll > see if I can test under vanilla X. So this seems to be very window-manager specific. With two different implementations of Gnome-on-X-on-Wayland, I get the -20 offset, also with one implementation of Gnome-on-X. However GTK running under KDE does not have the issue. Also running Compiz-on-Gnome gets me the correct answer, but Metacity gets it wrong. That suggests to me it=CA=BCs a window manager issue, but I=CA=BCm not sure= how we could work around the differences. Robert