Mike Cook
2006-Nov-01 08:23 UTC
[compiz] Minor fix to multi-head changes for mixed resolutions
Hey, David, for me the recent multihead changes had 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->outputDev[i].width, s->outputDev[i].height); I still have a problem with cube and rotate in that my primary head works, but the second head is a single flat window which rotates at its center point. I'll try to look at that next. Keep up the great work! ...MC
David Reveman
2006-Nov-01 08:33 UTC
[compiz] Minor fix to multi-head changes for mixed resolutions
On Wed, 2006-11-01 at 09:02 -0700, Mike Cook wrote:> Hey, David, for me the recent multihead changes had 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->outputDev[i].width, > s->outputDev[i].height);Thanks, I missed that.> > > I still have a problem with cube and rotate in that my primary head works, but the second head is a single flat window which rotates at its center point. I'll try to look at that next.Yes, it's currently only working with heads that have the same resolution as the primary head. I'll improve it sometime soon... -David
Shawn Starr
2006-Nov-01 08:45 UTC
[compiz] Minor fix to multi-head changes for mixed resolutions
Hi David, I have a dual-head right now and I'm about to compile compiz git to test. Does your recent changes make separate cubes now for each screen? Thanks, Shawn. ----- Original Message ---- From: David Reveman To: Mike Cook Cc: compiz Sent: Wednesday, November 1, 2006 12:31:36 PM Subject: Re: [compiz] Minor fix to multi-head changes for mixed resolutions On Wed, 2006-11-01 at 09:02 -0700, Mike Cook wrote:> Hey, David, for me the recent multihead changes had 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->outputDev[i].width, > s->outputDev[i].height);Thanks, I missed that.> > > I still have a problem with cube and rotate in that my primary head works, but the second head is a single flat window which rotates at its center point. I'll try to look at that next.Yes, it's currently only working with heads that have the same resolution as the primary head. I'll improve it sometime soon... -David _______________________________________________ compiz mailing list compiz@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/compiz
Shawn Starr
2006-Nov-01 09:48 UTC
[compiz] Minor fix to multi-head changes for mixed resolutions
Great stuff, Thanks. I just had compiz git crash though. If I use vmware server it somehow got confused with mouse and started thinking I was 'pressing' buttons and somehow it started zooming into the desktop without me being able to stop. Then the keyboard gave out and I had to magic sysrq reboot the box :( hmm.. Shawn. ----- Original Message ---- From: David Reveman To: Shawn Starr Cc: compiz Sent: Wednesday, November 1, 2006 12:23:34 PM Subject: Re: [compiz] Minor fix to multi-head changes for mixed resolutions On Wed, 2006-11-01 at 08:45 -0800, Shawn Starr wrote:> Hi David, > > I have a dual-head right now and I'm about to compile compiz git to test. Does your recent changes make separate cubes now for each screen?If all heads have the same resolution, it will look like they are separate views of the same cube. If all heads aren't running at the same resolution, it will look like they are different cubes (currently broken though, I'll fix it later today) Once we have input transformation support in the server we'll be able to do much more interesting things. -David
Hair
2006-Nov-02 00:34 UTC
[compiz] Re: Minor fix to multi-head changes for mixed resolutions
> Hey, David, for me the recent multihead changes had minor a problem with > mixed resolutions (1600x1200 & 1280x1024). The viewport was getting set > partially off screen.Can people say what graphics cards they have multihead working on please? I'm been desparate to get it working with ATI BigDesktop (with different resolutions) but xgl crashes everytime compiz starts. I gone through regular updates in hope never with any luck. To have some sort of informal list of what people have had working would be nice to have. Maybe such a list already exists? /mck -- "Physics is to math what sex is to masturbation." Richard Feynman Homepage - www.wever.org | Sesam Search Engine - www.sesam.no
Reasonably Related Threads
- [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
- Multihead related issues
- Bigscreen multihead issues [URGENT]
- Patch for zoom with mixed resolutions
- a few questions about OpenGL and nouveau