From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: x-display-pixel-width/height inconsistency Date: Wed, 20 Mar 2013 04:12:58 +0400 Message-ID: <8738vrq67p.fsf@yandex.ru> References: <87vc8nyoat.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1363738389 22458 80.91.229.3 (20 Mar 2013 00:13:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Mar 2013 00:13:09 +0000 (UTC) Cc: emacs-devel@gnu.org To: YAMAMOTO Mitsuharu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 20 01:13:33 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UI6eq-0001MO-0O for ged-emacs-devel@m.gmane.org; Wed, 20 Mar 2013 01:13:32 +0100 Original-Received: from localhost ([::1]:57243 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UI6eS-0006gX-It for ged-emacs-devel@m.gmane.org; Tue, 19 Mar 2013 20:13:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34554) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UI6eM-0006gC-M1 for emacs-devel@gnu.org; Tue, 19 Mar 2013 20:13:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UI6eI-0007x0-8g for emacs-devel@gnu.org; Tue, 19 Mar 2013 20:13:02 -0400 Original-Received: from mail-la0-x22d.google.com ([2a00:1450:4010:c03::22d]:47638) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UI6eI-0007wp-1A for emacs-devel@gnu.org; Tue, 19 Mar 2013 20:12:58 -0400 Original-Received: by mail-la0-f45.google.com with SMTP id er20so2103025lab.32 for ; Tue, 19 Mar 2013 17:12:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type:x-antivirus :x-antivirus-status; bh=4bbxIsU7dGTwxlbkxnNuBGN2CvU4ywSC+cNn9OpPtNs=; b=YSGAandakojlxwZ26a0Y0xsFagxNarniFduSn+eoYXbqsjAk4bRfEimA11m6vdghFv 7JqXSAclGDYcj5oTH7dpqxUIxwQOI0Jh1kMV8IbdOBK88kCmo4KFdUobhZGuJojvPvyg vly5RtbeBCs4LhHcguc8npWnyvFwyO754xMARGTv690zmY7DJAg0W1a2LAF5Hle/uWx5 qDxMkcf03mMwHKFUvKS1eibCiH+xPj+FsVQbvqpPv2OYcIV4mGsTW+1itgTJMR7s+mPk G7MZsDpLLsJDHZIUewlDKBTWNDX9HPPdG3nF1RJY/9nLTlYv5e5Wimwf2I+taQ6kHnDi 3pPg== X-Received: by 10.152.45.140 with SMTP id n12mr3707104lam.36.1363738376795; Tue, 19 Mar 2013 17:12:56 -0700 (PDT) Original-Received: from SOL ([178.252.98.87]) by mx.google.com with ESMTPS id o11sm7328568lbu.6.2013.03.19.17.12.54 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 19 Mar 2013 17:12:55 -0700 (PDT) In-Reply-To: (YAMAMOTO Mitsuharu's message of "Wed, 20 Mar 2013 08:52:49 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) X-Antivirus: avast! (VPS 130319-0, 19.03.2013), Outbound message X-Antivirus-Status: Clean X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22d X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:157970 Archived-At: YAMAMOTO Mitsuharu writes: >>>>>> On Wed, 20 Mar 2013 03:15:06 +0400, Dmitry Gutov said: > >>>> But the actual return value is different among the platforms: >>> >>>> * W32 port: Dimension of the primary monitor. (Not actually >>>> tested, but guessed from the code and API documentations.) >>> >>> Could someone using multi-monitor setups on W32 check if this guess >>> is correct? I'm confused because an API reference in English (*1) >>> says > >> It is correct. > > Thanks for checking. Does the following patch give dimensions of all > physical monitors as in X11? Do display-mm-height/width return > meaningful values? Sorry, can't apply the patch, `bzr patch' says bzr: ERROR: Error invoking patch: Invalid argument If you resend it in unified format, I can try to apply it manually. Without the patch, display-mm-height/width return some values, same on both monitors, but I can't tell how they relate to x-display-* functions. ELISP> (x-display-pixel-height) 1200 ELISP> (x-display-pixel-width) 1920 ELISP> (display-mm-height) 423 ELISP> (display-mm-width) 677