From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#18637: 24.4.50; doc of frame parameter DISPLAY vs actual value on MS Windows Date: Mon, 06 Oct 2014 19:54:07 +0300 Message-ID: <837g0dm95c.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1412614532 5974 80.91.229.3 (6 Oct 2014 16:55:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 Oct 2014 16:55:32 +0000 (UTC) Cc: 18637@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 06 18:55:23 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1XbBZA-0007Q6-PW for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Oct 2014 18:55:20 +0200 Original-Received: from localhost ([::1]:53085 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbBZA-00032l-Fc for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Oct 2014 12:55:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54950) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbBYy-00030J-Ai for bug-gnu-emacs@gnu.org; Mon, 06 Oct 2014 12:55:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XbBYt-0006lj-A8 for bug-gnu-emacs@gnu.org; Mon, 06 Oct 2014 12:55:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44396) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbBYt-0006lK-6i for bug-gnu-emacs@gnu.org; Mon, 06 Oct 2014 12:55:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XbBYs-00085D-DU for bug-gnu-emacs@gnu.org; Mon, 06 Oct 2014 12:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Oct 2014 16:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18637 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18637-submit@debbugs.gnu.org id=B18637.141261444630992 (code B ref 18637); Mon, 06 Oct 2014 16:55:02 +0000 Original-Received: (at 18637) by debbugs.gnu.org; 6 Oct 2014 16:54:06 +0000 Original-Received: from localhost ([127.0.0.1]:35960 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XbBXw-00083n-TS for submit@debbugs.gnu.org; Mon, 06 Oct 2014 12:54:05 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:39276) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XbBXt-00083K-9U for 18637@debbugs.gnu.org; Mon, 06 Oct 2014 12:54:02 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0ND100C007XLM700@a-mtaout22.012.net.il> for 18637@debbugs.gnu.org; Mon, 06 Oct 2014 19:53:59 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0ND100CSH89YM310@a-mtaout22.012.net.il>; Mon, 06 Oct 2014 19:53:59 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:94210 Archived-At: > Date: Mon, 6 Oct 2014 09:31:00 -0700 (PDT) > From: Drew Adams > Cc: 18637@debbugs.gnu.org > > > > Is there no support for multiple monitors on MS Windows? > > > > There is, but by and large, Emacs will see them as a single large > > desktop. See here: > > http://msdn.microsoft.com/en-us/library/dd145071%28v=vs.85%29.aspx > > (We don't support the "independent monitors" mode mentioned there.) > > > > In any case, "multiple monitors" and "multiple displays" are 2 > > different issues. Each display can have multiple monitors. > > OK. Where can one find doc about using multiple monitors with Emacs? There's nothing to document: they are treated as just one large monitor. The only functions we have are in that node you mentioned. > > > I was not able to find out how to obtain info about which monitor > > > is being used to show a particular frame > > > > The functions you mentioned provide that info, or maybe I don't > > understand what info are you looking for.q > > Which function tells you what monitor is showing a given frame (on > MS Windows)? frame-monitor-attributes, if I understand what you want. > > > The symptom reported was that by modifying a frame's parameters > > > to restore its previous values of `top', `left', `width' and > > > `height', the frame got moved to another monitor, for some > > > reason. > > > > Probably because the pixel coordinates mapped to that other monitor, > > the URL above explains that, among other things. > > I appreciate your replies and your trying to help, but I don't quite > understand you here. The URL you cite introduces a long chapter. Read it and its sections. You will find the information you want there. Skip whatever sounds not relevant or too low-level, and keep reading. > Yes, this is verbose, and no, I don't expect that you have the answer to > my coding problem. If you do have some light to shine on this, however, > then that is appreciated. Read the MSDN documentation I pointed to, the answers are there. If, after that, you still don't understand what could go wrong with your code, come back and ask more specific questions with specific code snippets. Right now, what you write and ask just shows how much of the background you are missing to start reasoning about this. The issues are not complicated once you understand how Windows treats multiple monitors.