Re: Wine creating windows offscreen when "multiwindow" is used?

Jon TURNEY <[email protected]>
Newsgroups gmane.os.cygwin.xfree
Message-ID <[email protected]>
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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.