diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-16 08:44:52 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-16 08:44:52 +0000 |
| commit | d8aff44a6a639de83ba8f0957f9f9f17f2a05532 (patch) | |
| tree | 43ebc733819c4337599a55eaed7b701a3401d2a7 /src/python.cc | |
| parent | 8b0daa912e72085994cfd804a60ba4113ba27148 (diff) | |
redo otk::Property. make it static.
Diffstat (limited to 'src/python.cc')
| -rw-r--r-- | src/python.cc | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/python.cc b/src/python.cc index d4cba31e..9905dec5 100644 --- a/src/python.cc +++ b/src/python.cc @@ -192,21 +192,14 @@ void set_reset_key(const std::string &key) ob::openbox->bindings()->setResetKey(key); } -PyObject *send_client_msg(Window target, int type, Window about, +PyObject *send_client_msg(Window target, Atom type, Window about, long data, long data1, long data2, long data3, long data4) { - if (type < 0 || type >= otk::Property::NUM_ATOMS) { - PyErr_SetString(PyExc_TypeError, - "Invalid atom type. Must be from otk::Property::Atoms"); - return NULL; - } - XEvent e; e.xclient.type = ClientMessage; e.xclient.format = 32; - e.xclient.message_type = - openbox->property()->atom((otk::Property::Atoms)type); + e.xclient.message_type = type; e.xclient.window = about; e.xclient.data.l[0] = data; e.xclient.data.l[1] = data1; |
