Imported Upstream version 1.15.1
[deb_xorg-server.git] / hw / xwin / man / XWin.man
CommitLineData
a09e091a
JB
1.TH XWIN 1 __vendorversion__
2.SH NAME
3XWin \- X Server for the Cygwin environment on Microsoft Windows
4
5
6.SH SYNOPSIS
7.B XWin
8[ options ] ...
9
10
11.SH DESCRIPTION
12\fIXWin\fP is an X Server for the X Window System on the Cygwin environment
13running on Microsoft Windows.
14
15
16.SH MODES
17\fIXWin\fP can operate in 3 different modes:
18.br
19* \fISingle Window\fP: This is the default mode. Each X screen
20appears as a single \fIWindows\fP window and all X windows are contained
21within this window.
22(In X terminology, the \fIWindows\fP window contains the root window for
23the screen)
24.br
25* \fIMulti-Window\fP: In this mode \fIXWin\fP uses its own integrated
26window manager in order to handle the top-level X windows, in such a
27way that they appear as normal \fIWindows\fP windows.
28.br
29* \fIRootless\fP: In this mode the X server works in a window
30containing the whole screen but this root window (traditionally covered with an X hatch
31pattern) is hidden from view, so only top-level X windows are seen.
32
33.SH OPTIONS
34In addition to the normal server options described in the \fIXserver(1)\fP
35manual page, \fIXWin\fP accepts the following command line switches,
36\fIall\fP of which are optional:
37
38.SH OPTIONS CONTROLLING WINDOWING MODE
39Only one of these options may be specified.
40.TP 8
41.B (default)
42Windowed or rooted mode.
43Each X screen appears as a single \fIWindows\fP window and all X windows are
44contained within those windows.
45.TP 8
46.B \-multiwindow
47Each top-level X window appears in its own \fIWindows\fP window.
48Also start the integrated \fIWindows\fP-based window manager.
49.TP 8
50.B \-rootless
51Run the server in rootless mode.
52The X server works on a window covering the whole screen but the root window
53is hidden from view.
54.TP 8
55.B \-mwextwm
56Experimental.
57The mode combines \fB\-rootless\fP mode drawing with native \fIWindows\fP
58window frames managed by the experimental external window manager \fIxwinwm\fP.
59.PP
60\fBNOTE:\fP \fI-multiwindow\fP mode uses its own internal window manager.
61All other modes require an external window manager in order to move, resize, and perform other
62operations on the individual X windows.
63
64.SH OPTIONS FOR SPECIFYING X SCREENS
65An X display may be composed of multiple screens.
66The default behaviour is to create a single screen 0 that is roughly the
67size of useful area of the primary monitor (allowing for any window
68decorations and the task-bar).
69
70Screen specific parameters can be applied as a
71default to all screens by placing those screen specific parameters
72before any \fB\-screen\fP parameter. Screen specific parameters placed after
73the first \fB\-screen\fP parameter will apply only to the immediately
74preceeding \fB\-screen\fP parameter.
75.TP 8
76.B \-[no]multimonitors or \-[no]multiplemonitors
77Create a screen 0 that covers all monitors [the primary monitor] on a system with
78multiple monitors.
79This option is currently enabled by default in \fB\-multiwindow\fP mode.
80.TP 8
81.B "\-screen \fIscreen_number\fP [\fIW\fP \fIH\fP [\fIX\fP \fIY\fP] | [[\fIW\fPx\fIH\fP[+\fIX\fP+\fIY\fP]][@\fIM\fP]] ] "
82Create screen number
83.I screen_number
84and optionally specify it's
85.I height,
86.I width
87and
88.I initial position.
89Additionally a
90.I
91monitor number
92(which count from 1) can be specified to place the screen on,
93at which point, all coordinates become relative to that monitor.
94Screen numbers must be contiguous starting from zero and cannot be duplicated.
95
96Examples:
97
98.I " -screen 0 @1 ; on 1st monitor using its full resolution (the default)"
99
100.I " -screen 0 800x600+100+100@2 ; on 2nd monitor offset 100,100 size 800x600"
101
102.I " -screen 0 1024x768@3 ; on 3rd monitor size 1024x768"
103
104.SH OPTIONS CONTROLLING THE APPEARANCE OF THE X SCREEN WINDOWS
105These parameters only apply to windowed mode screens i.e. not
106in \fB-multiwindow\fP or \fB-rootless\fP mode.
107.TP 8
108.B "\-fullscreen"
109The X server window takes the full screen, covering completely the
110\fIWindows\fP desktop.
111Currently \fB\-fullscreen\fP may only be applied to one X screen.
112.TP 8
113.B \-nodecoration
114Do not give the Cygwin/X window a \fIWindows\fP window border, title bar,
115etc.
116This parameter is ignored when the \fB\-fullscreen\fP parameter is specified.
117.TP 8
118.B \-scrollbars
119Alternative name for \fB\-resize=scrollbars\fP.
120
121.SH OPTIONS CONTROLLING RESIZE BEHAVIOUR
122.TP 8
123.B \-resize[=none|scrollbars|randr]
124Select the resize mode of an X screen. The default is randr.
125
126.RS
127.IP \fB\-resize=none\fP 8
128The screen is not resizable.
129
130In windowed mode, if the window has decorations, a fixed frame is used.
131
132Alternative name is \fB\-noresize\fP.
133
134.IP \fB\-resize=scrollbars\fP 8
135The screen window is resizeable, but the screen is not resizable.
136
137In windowed mode, if the window has decorations, a resizing frame is used.
138Scrollbars are drawn when needed to allow the entire X screen
139to viewed by adjusting them.
140
141This also permits screens bigger than the \fIWindows\fP virtual desktop to be used.
142
143This parameter is ignored in \fB-multiwindow\fP or \fB-rootless\fP mode.
144Alternative name is \fB\-scrollbars\fP.
145
146.IP \fB\-resize=randr\fP 8
147The screen is resizable and the screen window is resizeable.
148
149In windowed mode, if the window has decorations, a resizing frame is used.
150
151Resizing the \fIWindows\fP window will use the RANDR extension to change
152the size of the X screen. Likewise, changing the size of
153the X screen using the RANDR extension will cause the size
154of the \fIWindows\fP window containing the X screen to be changed.
155
156In \fB-multiwindow\fP or \fB-rootless\fP mode, if the X screen is
157of the same dimensions as a Windows monitor or the virtual desktop,
158the X server will respond to the WM_DISPLAYCHANGED sent when those
159dimensions change by resizing the X screen. Changing the size
160of the X screen using the RANDR extension is not permitted.
161
162The maximum dimensions of the screen are the dimensions of the \fIWindows\fP virtual desktop.
163
164.IP \fB\-resize\fP 8
165on its own is equivalent to \fB\-resize=randr\fP
166.RE
167
168.SH OPTIONS CONTROLLING WINDOWS INTEGRATION
169.TP 8
170.B \-[no]clipboard
171Enables [disables] the integration between the Cygwin/X clipboard and
172\fIWindows\fP clipboard. The default is enabled.
173.TP 8
174.B "\-emulate3buttons [\fItimeout\fP]"
175Emulate a three button mouse; pressing both buttons within
176.I timeout
177milliseconds causes an emulated middle button press. The default
178.I timeout
179is 50 milliseconds. Note that most mice with scroll wheel have middle
180button functionality, usually you will need this option only if you have
181a two button mouse without scroll wheel. Default is to enable this
182option if \fIWindows\fP reports a two button mouse, disabled otherwise.
183.TP 8
184.B \-[no]keyhook
185Enable [disable] a low-level keyboard hook for catching
186special keypresses like Menu and Alt+Tab and passing them to the X
187Server instead of letting \fIWindows\fP handle them.
188.TP 8
189.B \-lesspointer
190Normally the \fIWindows\fP mouse cursor is hidden when the mouse is
191over an active Cygwin/X window. This option causes the mouse cursor
192also to be hidden when it is over an inactive Cygwin/X window. This
193prevents the \fIWindows\fP mouse cursor from being drawn on top of the X
194cursor.
195This parameter has no effect unless \fB-swcursor\fP is also specified.
196.TP 8
197.B \-swcursor
198Disable the usage of the \fIWindows\fP cursor and use the X11 software cursor instead.
199.TP 8
200.B \-[no]trayicon
201Do not create a tray icon. Default is to create one
202icon per screen. You can globally disable tray icons with
203\fB\-notrayicon\fP, then enable it for specific screens with
204\fB\-trayicon\fP for those screens.
205.TP 8
206.B \-nounicodeclipboard
207Do not use Unicode clipboard even if on a NT-based platform.
208.TP 8
209.B \-[no]unixkill
210Enable or disable the \fICtrl-Alt-Backspace\fP key combination as a
211signal to exit the X Server. The \fICtrl-Alt-Backspace\fP key combination
212is disabled by default.
213.TP 8
214.B \-[no]wgl
215Enable [disable] the GLX extension to use the native Windows WGL interface
216for hardware accelerated OpenGL (AIGLX). The default is enabled.
217.TP 8
218.B \-[no]winkill
219Enable or disable the \fIAlt-F4\fP key combination as a signal to exit the
220X Server.
221The \fIAlt-F4\fP key combination is enabled by default.
222
223.SH DRAWING ENGINE OPTIONS
224.TP 8
225.B "\-clipupdates \fInum_boxes\fP"
226Specify an optional threshold, above which the regions in a shadow
227update operation will be collected into a GDI clipping region. The
228clipping region is then used to do a single bit block transfer that is
229constrained to the updated area by the clipping region. There is some
230overhead involved in creating, installing, destroying, and removing
231the clipping region, thus there may not be much benefit for a small
232number of boxes (less than 10). It is even possible that this
233functionality does not provide a benefit at any number of boxes; we
234can only determine the usefulness of this feature through testing.
235This option probably has limited effect on current \fIWindows\fP versions
236as they already perform GDI batching.
237This parameter works in conjunction with engines 1, 2, and 4 (Shadow
238GDI, Shadow DirectDraw, and Shadow DirectDraw Non-Locking,
239respectively).
240.TP 8
241.B "\-engine \fIengine_type_id\fP"
242This option, which is intended for Cygwin/X developers,
243overrides the server's automatically selected drawing engine type. This
244parameter will be ignored if the specified drawing engine type is not
245supported on the current system.
246
247Default behavior is to select the drawing engine with optimum performance that
248supports the specified depth and window configuration.
249
250The engine type ids are:
251.RS
252.IP 1 4
253Shadow GDI
254.IP 2 4
255Shadow DirectDraw
256.IP 4 4
257Shadow DirectDraw Non-Locking
258.IP 8 4
259Primary DirectDraw (unsupported, obsolete)
260.IP 16 4
261Native GDI (unsupported, experimental and barely functional)
262.RE
263
264.SH FULLSCREEN OPTIONS
265.TP 8
266.B "\-depth \fIdepth\fP"
267Specify the color depth, in bits per pixel, to use when running in
268fullscreen with a DirectDraw engine. This parameter is ignored if
269\fB\-fullscreen\fP is not specified.
270.TP 8
271.B "\-refresh \fIrate_in_Hz\fP"
272Specify an optional refresh rate to use when running in
273fullscreen with a DirectDraw engine. This parameter is ignored if
274\fB\-fullscreen\fP is not specified.
275
276.SH MISCELLANEOUS OPTIONS
277See also the normal server options described in the \fIXserver(1)\fP
278manual page
279
280.TP 8
281.B \-help
282Write a help text listing supported command line options and their description to the console.
283.TP 8
284.B \-ignoreinput
285Ignore keyboard and mouse input. This is usually only used for testing
286and debugging purposes.
287.TP 8
288.B "\-logfile \fIfilename\fP"
289Change the server log file from the default of \fI
290__logdir__/XWin.n.log\fP,
291where \fIn\fP is the display number of the XWin server, to \fIfilename\fP.
292.TP 8
293.B "\-logverbose \fIlevel\fP"
294Control the degree of verbosity of the log messages with the integer
295parameter \fIlevel\fP. For \fIlevel\fP=0 only fatal errors are
296reported, for \fIlevel\fP=1 simple information about
297configuration is also given, for \fIlevel\fP=2 (default)
298additional runtime information is recorded
299and for \fIlevel\fP=3 detailed log
300information (including trace and debug output) is produced. Bigger
301values will yield a still more detailed debug output.
302.TP 8
303.B \-silent-dup-error
304If another instance of \fIXWin\fP with the same display number is found running,
305exit silently and don't display any error message.
306.TP 8
307.B "\-xkblayout \fIlayout\fP"
308.TP 8
309.B "\-xkbmodel \fImodel\fP"
310.TP 8
311.B "\-xkboptions \fIoption\fP"
312.TP 8
313.B "\-xkbrules \fIrule\fP"
314.TP 8
315.B "\-xkbvariant \fIvariant\fp"
316These options configure the xkeyboard extension to load
317a particular keyboard map as the X server starts. The behavior is similar
318to the \fIsetxkbmap\fP(1) program.
319
320See the \fIxkeyboard-config\fP(__miscmansuffix__) manual page for a list of
321keyboard configurations.
322
323The keyboard layout data is located at \fI__datadir__/X11/xkb/\fP. Additional information
324can be found in the README files there and in the \fIsetxkbmap\fP(1) manual page.
325
326For example, in order to load a German layout for a pc105 keyboard, use the options:
327.br
328.I " \-xkblayout de \-xkbmodel pc105"
329
330Alternatively, you can use the \fIsetxkbmap\fP(1) program after \fIXWin\fP is
331running.
332
333The default is to select a keyboard configuration matching your current layout as
334reported by \fIWindows\fP, if known, or the default X server configuration
335if no matching keyboard configuration was found.
336
337.SH UNDOCUMENTED OPTIONS
338These options are undocumented. Do not use them.
339
340.TP 8
341.B \-emulatepseudo
342Create a depth 8 PseudoColor visual when running in depths 15, 16, 24,
343or 32, collectively known as TrueColor depths.
344Color map manipulation is not supported, so the PseudoColor visual will
345not have the correct colors.
346This option is intended to allow applications which only work with a depth 8
347visual to operate in TrueColor modes.
348.TP 8
349.B \-internalwm
350Run the internal window manager.
351
352.SH LOG FILE
353As it runs \fIXWin\fP writes messages indicating the most relevant events
354to the console
355from which it was called and to a log file that by default is located at \fI
356__logdir__/XWin.0.log\fP. This file is mainly for debugging purposes.
357
358
359.SH PREFERENCES FILE
360On startup \fIXWin\fP looks for the file \fI$HOME/.XWinrc\fP or, if
361the previous file does not exist, \fI
362__sysconfdir__/X11/system.XWinrc\fP. \fI.XWinrc\fP allows setting
363preferences for the following:
364.br
365* To include items into the menu associated with the \fIXWin\fP icon
366which is in the \fIWindows\fP system tray. This functions in all
367modes that have a tray icon.
368.br
369* To include items in the system menu which is associated with the \fIWindows\fP
370window that \fIXWin -multiwindow\fP produces for each top-level X
371window, in both the generic case and for particular programs.
372.br
373* To change the icon that is associated to the \fIWindows\fP window that
374\fIXWin -multiwindow\fP produces for each top-level X-window.
375.br
376* To change the style that is associated to the \fIWindows\fP window that
377\fXWin I-multiwindow\fP produces for each top-level X window.
378.PP
379The format of the \fI.XWinrc\fP file is given in the XWinrc(5) manual page.
380
381.SH EXAMPLES
382Need some examples
383
384
385.SH "SEE ALSO"
386X(__miscmansuffix__), Xserver(1), xdm(1), xinit(1), XWinrc(__filemansuffix__),
387setxkbmap(1), xkeyboard-config(__miscmansuffix__).
388
389
390.SH BUGS
391.I XWin
392and this manual page still have many limitations.
393
394The \fIXWin\fP software is continuously developing; it is therefore possible that
395this manual page is not up to date. It is always prudent to
396look also at the output of \fIXWin -help\fP in order to
397check the options that are operative.
398
399
400.SH AUTHORS
401This list is by no means complete, but direct contributors to the
402Cygwin/X project include (in alphabetical order by last name): Stuart
403Adamson, Michael Bax, Jehan Bing, Lev Bishop, Dr. Peter Busch, Biju G
404C, Robert Collins, Nick Crabtree, Early Ehlinger, Christopher Faylor,
405John Fortin, Brian Genisio, Fabrizio Gennari, Alexander Gottwald, Ralf
406Habacker, Colin Harrison, Matthieu Herrb, Alan Hourihane, Pierre A
407Humblet, Harold L Hunt II, Dakshinamurthy Karra, Joe Krahn,
408Paul Loewenstein, Kensuke Matsuzaki,
409Takuma Murakami, Earle F. Philhower III, Benjamin Riefenstahl, Yaakov Selkowitz,
410Suhaib Siddiqi, Jack Tanner, Jon Turney and Nicholas Wourms.