[MeeGo-dev] does the mcompositor support xrandr setting?
Chen, Jacob
jacob.chen at intel.com
Thu Mar 3 02:47:25 PST 2011
Hi Kimmo,
Thanks for your reply.
You mentioned it's easy to support xrandr. Is it something like add the below code to mcompositemanager.cpp : void MCompositeManagerPrivate::configureEvent(XConfigureEvent *e) to resize the xoverlay window?
---
if (e->window == xoverlay) {
MCompositeWindow *topwin = COMPOSITE_WINDOW(e->window);
QRect rr(e->x, e->y, e->width, e->height);
topwin->propertyCache()->setRealGeometry(rr);
return;
}
---
Regards,
Jacob
-----Original Message-----
From: Hämäläinen Kimmo [mailto:kimmo.hamalainen at nokia.com]
Sent: Wednesday, March 02, 2011 9:29 PM
To: Chen, Jacob
Cc: MeeGo-dev at meego.com
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
> MeeGo-dev at meego.com
> http://lists.meego.com/listinfo/meego-dev
> http://wiki.meego.com/Mailing_list_guidelines
More information about the MeeGo-dev
mailing list