xrandr uses "output", let's be consistent there.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
\fImaster\fP must specify a master pointer.
.PP
.TP 8
\fImaster\fP must specify a master pointer.
.PP
.TP 8
-.B --map-to-crtc \fIdevice\fP \fIcrtc\fP
+.B --map-to-output \fIdevice\fP \fIcrtc\fP
Restricts the movements of the absolute \fIdevice\fP to the RandR
Restricts the movements of the absolute \fIdevice\fP to the RandR
-\fIcrtc\fP. The CRTC name must match a currently connected CRTC (see
+\fIcrtc\fP. The output name must match a currently connected output (see
\fIxrandr(__appmansuffix__)\fP). If the NVIDIA binary driver is
detected or RandR 1.2 or later is not available, a Xinerama output may be
specified as "HEAD-N", with N being the Xinerama screen number. This option
\fIxrandr(__appmansuffix__)\fP). If the NVIDIA binary driver is
detected or RandR 1.2 or later is not available, a Xinerama output may be
specified as "HEAD-N", with N being the Xinerama screen number. This option
-map_crtc_xrandr(Display *dpy, int deviceid, const char *output_name)
+map_output_xrandr(Display *dpy, int deviceid, const char *output_name)
{
int i, found = 0;
int rc = EXIT_FAILURE;
{
int i, found = 0;
int rc = EXIT_FAILURE;
-map_crtc_xinerama(Display *dpy, int deviceid, const char *output_name)
+map_output_xinerama(Display *dpy, int deviceid, const char *output_name)
{
const char *prefix = "HEAD-";
XineramaScreenInfo *screens = NULL;
{
const char *prefix = "HEAD-";
XineramaScreenInfo *screens = NULL;
-map_to_crtc(Display *dpy, int argc, char *argv[], char *name, char *desc)
+map_to_output(Display *dpy, int argc, char *argv[], char *name, char *desc)
{
int opcode, event, error;
int maj, min;
{
int opcode, event, error;
int maj, min;
XIDeviceInfo *info;
if (argc < 2)
XIDeviceInfo *info;
if (argc < 2)
/* Check for RandR 1.2. Server bug causes the NVIDIA driver to
/* Check for RandR 1.2. Server bug causes the NVIDIA driver to
- * report with RandR 1.3 support but it doesn't expose RandR CRTCs.
+ * report with RandR 1.3 support but it doesn't expose RandR outputs.
* Force Xinerama if NV-CONTROL is present */
if (XQueryExtension(dpy, "NV-CONTROL", &opcode, &event, &error) ||
!XQueryExtension(dpy, "RANDR", &opcode, &event, &error) ||
!XRRQueryVersion(dpy, &maj, &min) || (maj * 1000 + min) < 1002)
* Force Xinerama if NV-CONTROL is present */
if (XQueryExtension(dpy, "NV-CONTROL", &opcode, &event, &error) ||
!XQueryExtension(dpy, "RANDR", &opcode, &event, &error) ||
!XRRQueryVersion(dpy, &maj, &min) || (maj * 1000 + min) < 1002)
- return map_crtc_xinerama(dpy, info->deviceid, crtc_name);
+ return map_output_xinerama(dpy, info->deviceid, output_name);
- return map_crtc_xrandr(dpy, info->deviceid, crtc_name);
+ return map_output_xrandr(dpy, info->deviceid, output_name);
- { "map-to-crtc",
- "<device> <crtc name>",
- map_to_crtc,
+ { "map-to-output",
+ "<device> <output name>",
+ map_to_output,
},
#endif
{ "list-props",
},
#endif
{ "list-props",
int float_device( Display* display, int argc, char *argv[], char *prog_name, char *prog_desc);
int set_clientpointer( Display* display, int argc, char *argv[], char *prog_name, char *prog_desc);
int test_xi2( Display* display, int argc, char *argv[], char *prog_name, char *prog_desc);
int float_device( Display* display, int argc, char *argv[], char *prog_name, char *prog_desc);
int set_clientpointer( Display* display, int argc, char *argv[], char *prog_name, char *prog_desc);
int test_xi2( Display* display, int argc, char *argv[], char *prog_name, char *prog_desc);
-int map_to_crtc( Display* display, int argc, char *argv[], char *prog_name, char *prog_desc);
+int map_to_output( Display* display, int argc, char *argv[], char *prog_name, char *prog_desc);