From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#31031: 27.0; (elisp) `Position Parameters', floating-point values Date: Thu, 05 Apr 2018 16:21:01 +0200 Message-ID: <87k1tl68fm.fsf@gmail.com> References: <5AC3232D.1020107@gmx.at> <874lksy9vy.fsf@gmail.com> <5AC35626.2070700@gmx.at> <877epowjq9.fsf@gmail.com> <5AC48386.8040901@gmx.at> <87sh8bw4xa.fsf@gmail.com> <5AC5C981.30700@gmx.at> 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 1522938016 5389 195.159.176.226 (5 Apr 2018 14:20:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 5 Apr 2018 14:20:16 +0000 (UTC) Cc: 31031@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 05 16:20:10 2018 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 1f45kI-0001E6-62 for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Apr 2018 16:20:10 +0200 Original-Received: from localhost ([::1]:33028 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f45mL-0001uv-S7 for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Apr 2018 10:22:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f45mC-0001uW-G4 for bug-gnu-emacs@gnu.org; Thu, 05 Apr 2018 10:22:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f45m6-0003Wz-Od for bug-gnu-emacs@gnu.org; Thu, 05 Apr 2018 10:22:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59881) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f45m6-0003Wt-Kx for bug-gnu-emacs@gnu.org; Thu, 05 Apr 2018 10:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f45m6-0003zg-Et for bug-gnu-emacs@gnu.org; Thu, 05 Apr 2018 10:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Apr 2018 14:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31031 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31031-submit@debbugs.gnu.org id=B31031.152293807515293 (code B ref 31031); Thu, 05 Apr 2018 14:22:02 +0000 Original-Received: (at 31031) by debbugs.gnu.org; 5 Apr 2018 14:21:15 +0000 Original-Received: from localhost ([127.0.0.1]:39545 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f45lL-0003yb-9d for submit@debbugs.gnu.org; Thu, 05 Apr 2018 10:21:15 -0400 Original-Received: from mail-wm0-f44.google.com ([74.125.82.44]:39041) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f45lK-0003yO-3j for 31031@debbugs.gnu.org; Thu, 05 Apr 2018 10:21:14 -0400 Original-Received: by mail-wm0-f44.google.com with SMTP id f125so7600665wme.4 for <31031@debbugs.gnu.org>; Thu, 05 Apr 2018 07:21:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version:content-transfer-encoding; bh=2f19jsbr3lhfxnm+ZPFfdI+2hrQDWlf8tZut+bAKXFw=; b=iBUMF1rHRyJz12rn40gdu6xZOfn7BTS77cca/8pOMyZXf4tmd9TcuwwV5AySli3rew 2ZL8aGeo2BYmZmNo2gRlgWVBjhYq0MpjixcZ3l+zZdCINAGoCf5XKWFCekXyADx8ndwV z5gEW90m64o0PPcX1UC0/CsAUDcCZJW5kCxnFbG/eg/kqowPbQfQ8oz4NETawZgmWuOH 5BICOUfxMa/i08FX0i7/icdBcduqZQkV7ROu1EVhJHw0q2BYkGzO3XUQFKYdJUeulsfX bPHIrLQMzybGkQOPQ8dW5pFIVdH/OfcZer9RVoDPGUERxPTBLA26DywNrKjZ7srrAOaR iZfA== 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-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=2f19jsbr3lhfxnm+ZPFfdI+2hrQDWlf8tZut+bAKXFw=; b=pCzvQo+7sySONuLNwP6HCCgOebon/r6waQ9+YWtq0TdLIJc3YlXnp1YJIEAsjwOrJx 5vXgD94U9iKqq3XCNbxEkXbjWJyapYdEVGf06r7pRM+quVZ/rs7RHd/XM4/Hyj7cKXMY pxaK8TvoeGQgtTt9ts3+JB29wmCgEV0B905Y6VEi904ffC0hNraf2033vMFbFcAA7M09 1naydvOdkiqo4BeCkU3Rk5FUZo/gpbT4g9YVqKEj9wsxsqCLf2TV8AFCZIU8AhSrj4wX Qi9oeAPkBox80m0mv06+nsCgGY4tK8qrxdJ9Vyj8IM2qj17ULgBagtHToVsqW3RLoacR BPiw== X-Gm-Message-State: AElRT7GFuPlJh+jptXXiOi+IfHZVynq47D6nLvCpyPrtOatwTLzQg2aw yukLEK4KW9c2eumcrMRlrDoK9VrQ X-Google-Smtp-Source: AIpwx4+3akU9B+eaL446buUZXRQHIfMoA42B+xW/JMtMQvqLLA5Va+iJXE4GmoGBr5refmN4eqCPww== X-Received: by 10.28.226.138 with SMTP id z132mr10010288wmg.101.1522938063194; Thu, 05 Apr 2018 07:21:03 -0700 (PDT) Original-Received: from rpluim ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id m83sm3579008wma.17.2018.04.05.07.21.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Apr 2018 07:21:02 -0700 (PDT) Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <5AC5C981.30700@gmx.at> (martin rudalics's message of "Thu, 05 Apr 2018 09:00:17 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.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:144926 Archived-At: martin rudalics writes: >>> Why did you ask for 2400 and not for 2360? If the position value is >>> too large the window manager might try to fit the frame onto the >>> screen. OTOH "correcting" this to 2380 means there are 20 pixels (the >>> full right external border) missing on the right if not I am missing >>> something. >> >> I asked for 2400 because if I ask for 2360 the frame is not flush >> right. > > Funny. There must be some strange calculations going on behind the > scenes. Is there some consistency in the sense that your window > manager never shows the full external border when you want to place it > at some position on the left or top of the screen? > No, I haven't noticed any artifacts like that. >> I think we=CA=BCre getting a -20 offset back from X somewhere when query= ing >> the frame size/position. > > And the -20 doesn't correspond to what you see on screen because the > external border is not fully visible. Right? > What there is of the external border is fully visible, since the frame is not flush right (except when I ask for 2400, that is). >> If I look at this hunk in >> x_real_pos_and_offsets: >> >> #ifdef USE_XCB >> geom =3D xcb_get_geometry_reply (xcb_conn, geom_cookie, NULL); >> if (geom) >> { >> real_x =3D geom->x; >> >> then real_x there is -20 when the frame is flush left. Should we be >> using gdk/gtk calls to get the window geometry? > > By all means try to check whether these get you better results. But > before that you might want to try disabling USE_XCB. I recall an > earlier discussion where I strongly doubted the correctness of values > returned by x_real_pos_and_offsets. Some of them do seem bogus. disabling USE_XCB has no effect on the values (I have a vague memory of Xlib using XCB behind the scenes now, so that=CA=BCs not too surprising) I=CA=BCll see if I can change the guts of x_real_pos_and_offsets to use GDK directly, that might fix things. Robert