search for: noutputdev

Displaying 2 results from an estimated 2 matches for "noutputdev".

Did you mean: outputdev
2008 Feb 08
0
[PATCH] Make outputDeviceForGeometry behave smarter when dealing with overlapping outputs. Currently, the current output is returned if some part of the rectangle is on it; otherwise the output device the rectangle center is on is returned. This works
...3961,26 +3983,64 @@ outputDeviceForGeometry (CompScreen *s, int height, int borderWidth) { - int output = s->currentOutputDev; - int x1, y1, x2, y2; + int *overlapAreas; + int i, highest, seen, highestScore; + BOX geomRect; + + if (s->nOutputDev == 1) + return 0; - width += borderWidth * 2; - height += borderWidth * 2; + overlapAreas = malloc (s->nOutputDev * sizeof (int)); + if (!overlapAreas) + return 0; - x1 = s->outputDev[output].region.extents.x1; - y1 = s->outputDev[output].region.extents.y1; - x2 =...
2006 Nov 01
4
Minor fix to multi-head changes for mixed resolutions
...d minor a problem with mixed resolutions (1600x1200 & 1280x1024). The viewport was getting set partially off screen. The following tweak fixed it for me: --- plugins/display.c +++ plugins/display.c @@ -2069,7 +2069,7 @@ eventLoop (void) { if (s->nOutputDev > 1) glViewport (s->outputDev[i].region.extents.x1, - s->outputDev[i].region.extents.y1, + s->height - s->outputDev[i].region.extents.y2, s-...