summaryrefslogtreecommitdiff
path: root/src/python_client.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/python_client.cc')
-rw-r--r--src/python_client.cc13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/python_client.cc b/src/python_client.cc
index 5ab86b6c..86c738d9 100644
--- a/src/python_client.cc
+++ b/src/python_client.cc
@@ -11,26 +11,17 @@ namespace ob {
extern "C" {
-PyObject *get_client_dict(PyObject* self, PyObject* args)
-{
- if (!PyArg_ParseTuple(args, ":get_client_dict"))
- return NULL;
- return PyDictProxy_New((PyObject*)Openbox::instance->pyclients());
-}
-
-
-
PyObject *getWindow(PyObject* self, PyObject* args)
{
if (!PyArg_ParseTuple(args, ":getWindow"))
return NULL;
- return PyLong_FromLong(((PyClientObject*)self)->window);
+ return PyLong_FromLong(((PyClientObject*)self)->client->window());
}
static PyMethodDef attr_methods[] = {
- {"getWindow", getWindow, METH_VARARGS,
+ {"getWindow", (PyCFunction)getWindow, METH_VARARGS,
"Return the window id."},
{NULL, NULL, 0, NULL} /* sentinel */
};