X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fpython_client.cc;h=86c738d98dd4531154bb645b5b7cbe2b8a5e9ca0;hb=68194ce957db36ead19a39fdc7636a220befafe9;hp=3758e427d66b870eb958a3ab75cb9a31bf31b4f3;hpb=700984bd150d98a6876c117c2e1b1b3c72cffce1;p=chaz%2Fopenbox diff --git a/src/python_client.cc b/src/python_client.cc index 3758e427..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(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 */ };