From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8491 invoked by alias); 9 Jul 2014 22:22:28 -0000 Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com Received: (qmail 8379 invoked by uid 89); 9 Jul 2014 22:22:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: p3plsmtpa12-03.prod.phx3.secureserver.net Received: from p3plsmtpa12-03.prod.phx3.secureserver.net (HELO p3plsmtpa12-03.prod.phx3.secureserver.net) (68.178.252.232) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 09 Jul 2014 22:22:26 +0000 Received: from [10.0.1.110] ([72.209.18.161]) by p3plsmtpa12-03.prod.phx3.secureserver.net with id QNNP1o00F3UWwwg01NNPpS; Wed, 09 Jul 2014 15:22:24 -0700 Message-ID: <53BDC08E.5060703@codespunk.com> Date: Wed, 09 Jul 2014 22:22:00 -0000 From: "Matt D." User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: cygwin-xfree@cygwin.com Subject: Re: Wine creating windows offscreen when "multiwindow" is used? References: <53B5DD59.5020302@codespunk.com> <53B978DA.3040305@dronecode.org.uk> <53BD6976.8000708@dronecode.org.uk> In-Reply-To: <53BD6976.8000708@dronecode.org.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-07/txt/msg00007.txt.bz2 Jon, Yes! That fixed it. Windows from Wine open up just as regular X windows on the primary monitor. To achieve this is appears as though you're ignoring the Window's requested x/y position entirely and favoring the placement heuristics, as these coordinates are being ignored. I do have a use-case where I want windows from Wine to be created at a designated position for testing, so I don't have to test on a Windows machine for placement as well. Is it at all possible to have these windows map their coordinates strictly, as in 0,0 on the primary monitor would be 1920x1080 in my case. For example, I may want a child window which is a custom dialog aligned to the center of its parent, or a newly created window to be center-aligned to the screen. You've done a great job with this, Jon. I'm not complaining, as this will allow me to begin writing code immediately (I can finally see the window!). Thanks so much for your help. :) Matt D. On 7/9/2014 12:10 PM, Jon TURNEY wrote: > On 06/07/2014 17:27, Jon TURNEY wrote: >> There is some code in XWin which attempts to ensure that the window is >> placed somewhere visible, but that assumes that the Window virtual >> desktop is a rectangle of size GetSystemMetrics(SM_CXVIRTUALSCREEN) x >> GetSystemMetrics(SM_CYVIRTUALSCREEN). >> >> I think it should be pretty straightforward to change this, perhaps to >> use MonitorFromPoint() to determine if the window will be visible on a >> non-rectangular virtual desktop. > > I've built a snapshot with this change. Perhaps you could try that and > see if it improves things for you? > > ftp://cygwin.com/pub/cygwinx/x86/XWin.20140709-git-2e9c13ea41c51df7.exe.bz2 > ftp://cygwin.com/pub/cygwinx/x86_64/XWin.20140709-git-2e9c13ea41c51df7.exe.bz2 > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/