Initial XWin desktop placement

Wed Apr 13 16:46:00 GMT 2011

On 13/04/2011 15:49, wrote:
> I feel like this question was answered on the list previously but could
> not find it. I run XWin with two screens on multiple monitors (i.e.,
> "XWin :4 -nodecoration -multiplemonitors -screen 0 1600 1200 -screen 1
> 1600 1200") and at one point got it to remember to place both screens on
> my secondary monitor. After switching my monitor setup recently, it now
> always pops up the screens on my primary monitor. I've searched my
> registry (for cygwin and xwin) but could not find where it was storing
> the initial locations. After moving the screens to where I want them,
> I've tried various means of shutting down XWin.exe but it does not
> remember the locations. This is a Windows XP machine, if that matters.

The description of the -screen option in 'man XWin' should clear all this up.

XWin doesn't store the position of the screen windows anywhere, it places them
where you request them.

If you just specify a height and width and no position in the -screen option,
the screen window is placed at the top-left of the Windows virtual desktop.

I guess perhaps you've switched from a setup with the primary monitor on the
right to one with the primary monitor on the left, hence the window is now
located on your primary monitor?

(It could perhaps be made clearer that a normalized coordinate space is used
for specifying the screen window position, where (0,0) is the top-left of the
Windows virtual desktop, which is not the same as the Windows virtual desktop
coordinate space (which has (0,0) at the top-left of the primary monitor), to
avoid negative coordinates.)

To place a screen window on the secondary monitor, I'd suggest you use the
syntax '-nodecoration -screen 0 @2'.

(You shouldn't need to use -multiplemonitors, as it isn't doing anything much
for you, since all it should do is set the size of screen 0 to match the
Windows virtual desktop, which you are then overriding with an explicitly
specified screen size, but experimenting a bit, it looks like there is a bug
at the moment, in that, when -multiplemonitors isn't specified, the screen
window size is always constrained to fit the usable area of the primary
monitor (rather than the usable area of the specified monitor), so you will
need to specify -mutliplemonitors and the window size if you want a screen the
same size as your secondary monitor and your secondary monitors is larger than
your primary monitor, e.g. '-nodecoration -multiplemonitors -screen 0

Volunteer Cygwin/X X Server maintainer

Unsubscribe info:
Problem reports:

More information about the Cygwin-xfree mailing list