On Fri, 2011-03-11 at 10:57 +0800, ext Chen, Jacob wrote: > Hi here, > > As Kimmo said there will be some modification to resize the off screen pixel > for supporting Xrandr. Is there anyone can point me out the direction?
You could start from MCompositeManagerPrivate::configureEvent(). That should be called for the root window and other windows when XRandR rotates. Then you would call ((MTexturePixmapItem*)item)->saveBackingStore() for each configured window that is mapped. This would fetch the pixmap again (since the geometry is now different). And call glwidget->update() to repaint the scene. Probably something else is also needed, but this is what I'd try first. -Kimmo > > Thanks > Jacob > -----Original Message----- > From: Hämäläinen Kimmo [mailto:[email protected]] > Sent: Wednesday, March 02, 2011 9:29 PM > To: Chen, Jacob > Cc: [email protected] > Subject: Re: [MeeGo-dev] does the mcompositor support xrandr setting? > > On Wed, 2011-03-02 at 18:13 +0800, ext Chen, Jacob wrote: > ... > > My question is, does mcompositor support xrandr setting? > > As Max said, it does not support it. But it should be quite easy to > add. It would be enough to track ConfigureNotifys for the root window > --- since its size changes when XRandR rotates, and recreate the > offscreen pixmaps in this case. > > If somebody is willing to look at it, please send your merge request > against the 'staging' branch of > http://meego.gitorious.org/meegotouch/meegotouch-compositor > > The Nokia phone we are working on does not support XRandR so the support > is not done yet. > > -Kimmo > > > > > > > Regards, > > Jacob > > _______________________________________________ > > MeeGo-dev mailing list > > [email protected] > > http://lists.meego.com/listinfo/meego-dev > > http://wiki.meego.com/Mailing_list_guidelines > > _______________________________________________ > MeeGo-dev mailing list > [email protected] > http://lists.meego.com/listinfo/meego-dev > http://wiki.meego.com/Mailing_list_guidelines _______________________________________________ MeeGo-dev mailing list [email protected] http://lists.meego.com/listinfo/meego-dev http://wiki.meego.com/Mailing_list_guidelines
