From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19378 invoked by alias); 21 Jul 2014 15:58:05 -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 19302 invoked by uid 89); 21 Jul 2014 15:58:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: rgout05.bt.lon5.cpcloud.co.uk Received: from rgout05.bt.lon5.cpcloud.co.uk (HELO rgout05.bt.lon5.cpcloud.co.uk) (65.20.0.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 21 Jul 2014 15:58:01 +0000 X-CTCH-RefID: str=0001.0A090202.53CD3887.00FF,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 X-Junkmail-Premium-Raw: score=27/50,refid=2.7.2:2014.7.21.134221:17:27.888,ip=86.139.176.184,rules=__MOZILLA_MSGID, __HAS_MSGID, __SANE_MSGID, __HAS_FROM, __USER_AGENT, __MOZILLA_USER_AGENT, __MIME_VERSION, __TO_MALFORMED_2, __TO_NO_NAME, __BOUNCE_CHALLENGE_SUBJ, __BOUNCE_NDR_SUBJ_EXEMPT, __IN_REP_TO, __CT, __CT_TEXT_PLAIN, __CTE, __CP_NAME_BODY, __INT_PROD_COMP, __SUBJ_ALPHA_NEGATE, BODY_SIZE_1700_1799, BODYTEXTP_SIZE_3000_LESS, __MIME_TEXT_ONLY, RDNS_GENERIC_POOLED, SXL_IP_DYNAMIC[184.176.139.86.fur], HTML_00_01, HTML_00_10, BODY_SIZE_5000_LESS, RDNS_SUSP_GENERIC, RDNS_SUSP, BODY_SIZE_2000_LESS, BODY_SIZE_7000_LESS, NO_URI_FOUND X-CTCH-Spam: Unknown Received: from [192.168.1.93] (86.139.176.184) by rgout05.bt.lon5.cpcloud.co.uk (8.6.122.06) (authenticated as jonturney@btinternet.com) id 53CCFDF900073AAD; Mon, 21 Jul 2014 16:57:59 +0100 Message-ID: <53CD3881.2060306@dronecode.org.uk> Date: Mon, 21 Jul 2014 15:58:00 -0000 From: Jon TURNEY User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: cygwin-xfree@cygwin.com, matt@codespunk.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> <53BDC08E.5060703@codespunk.com> In-Reply-To: <53BDC08E.5060703@codespunk.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2014-07/txt/msg00014.txt.bz2 On 09/07/2014 23:22, Matt D. wrote: > Yes! That fixed it. Windows from Wine open up just as regular X > windows on the primary monitor. Thanks for testing. This change is included in 1.14.1-4 > 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. When the requested position isn't on a monitor, yes. > 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. This is a bit more work. Firstly, it seems there are some bugs in the way we transform between X and Windows coordinates, so it's only done correctly when the top-left of the X screen is at the top-left of the Windows virtual desktop. Secondly, I'm not sure how we can have X coordinates 0,0 not at the top-left and have things work correctly. X windows with negative coordinates are by definition off-screen, so may not render correctly. Or we could adjust the placement of all windows by the required offset, but I'm not sure that is a good idea. > 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 might find running wine in 'virtual desktop' mode helpful, as I don't think it has enough knowledge of the Xinerama monitor layout to place windows centered on a monitor. -- Jon TURNEY Volunteer Cygwin/X X Server maintainer -- 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/