X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fpython_client.cc;h=86c738d98dd4531154bb645b5b7cbe2b8a5e9ca0;hb=68194ce957db36ead19a39fdc7636a220befafe9;hp=5ab86b6cdb87f5eba43130d8b2c076bd0e103543;hpb=06de24ec6666578759eff2b348e50f5e8e20f3bd;p=chaz%2Fopenbox 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 */ };