Author: dmeyer
Date: Wed May 23 19:54:00 2007
New Revision: 2685
Modified:
trunk/display/src/x11.py
trunk/display/src/x11display.c
Log:
add composite_redirect
Modified: trunk/display/src/x11.py
==============================================================================
--- trunk/display/src/x11.py (original)
+++ trunk/display/src/x11.py Wed May 23 19:54:00 2007
@@ -140,7 +140,7 @@
def __getattr__(self, attr):
- if attr in ("socket,"):
+ if attr in ("socket", "composite_redirect"):
return getattr(self._display, attr)
return getattr(super(X11Display, self), attr)
Modified: trunk/display/src/x11display.c
==============================================================================
--- trunk/display/src/x11display.c (original)
+++ trunk/display/src/x11display.c Wed May 23 19:54:00 2007
@@ -250,6 +250,20 @@
return Py_False;
}
+PyObject *
+X11Display_PyObject__composite_redirect(X11Display_PyObject * self, PyObject *
args)
+{
+#ifdef HAVE_X11_COMPOSITE
+ int wid = 0;
+ if (!PyArg_ParseTuple(args, "i", &wid))
+ return NULL;
+ XCompositeRedirectWindow( self->display, wid, CompositeRedirectManual);
+ return Py_INCREF(Py_None), Py_None;
+#else
+ PyErr_Format(PyExc_SystemError, "Composite extention not supported");
+ return NULL;
+#endif
+}
PyMethodDef X11Display_PyObject_methods[] = {
{ "handle_events", ( PyCFunction ) X11Display_PyObject__handle_events,
METH_VARARGS },
@@ -260,6 +274,7 @@
{ "get_string", ( PyCFunction ) X11Display_PyObject__get_string,
METH_VARARGS },
{ "glx_supported", ( PyCFunction ) X11Display_PyObject__glx_supported,
METH_VARARGS },
{ "composite_supported", ( PyCFunction )
X11Display_PyObject__composite_supported, METH_VARARGS },
+ { "composite_redirect", ( PyCFunction )
X11Display_PyObject__composite_redirect, METH_VARARGS },
{ NULL, NULL }
};
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog