Here is some further thought about the pixmap handling. What I somehow
dislike is the "dirty" handling of pixmaps when the client is closed.
How about pre-allocating the pixmaps at driver startup:

void wcmLedInitPixmap(WacomDevicePtr priv, int *values, int count)
{
        int i;
        ScreenPtr pScreen = screenInfo.screens[0];

        for (i = 0; i < count; i++) {
                PixmapPtr pMap;
                XID id;

                pMap = pScreen->CreatePixmap(pScreen, 64, 32, 
pScreen->rootDepth, 0);
                id = FakeClientID(0);
                pMap->drawable.id = id;
                AddResource(id, RT_PIXMAP, pMap);

                values[i] = id;
        }
}

or is this also too "hackish"?

Eduard

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to