From 084d6f4e42396a5d2baf72877b5abf3ae6fef7be Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 24 Jan 2003 09:25:03 +0000 Subject: some intermediate stage. stacked focus cycling is very broken. dont try it. going to have to change how the python stuff works i think! --- src/python.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/python.cc') diff --git a/src/python.cc b/src/python.cc index a89fa467..ff02d6d4 100644 --- a/src/python.cc +++ b/src/python.cc @@ -123,14 +123,14 @@ PyObject *ebind(ob::EventAction action, PyObject *func) Py_INCREF(Py_None); return Py_None; } -PyObject *kgrab(PyObject *func) +PyObject *kgrab(int screen, PyObject *func) { if (!PyCallable_Check(func)) { PyErr_SetString(PyExc_TypeError, "Invalid callback function."); return NULL; } - if (!ob::openbox->bindings()->grabKeyboard(func)) { + if (!ob::openbox->bindings()->grabKeyboard(screen, func)) { PyErr_SetString(PyExc_RuntimeError,"Unable to grab keybaord."); return NULL; } -- cgit v1.2.3