]> Dogcows Code - chaz/openbox/blobdiff - src/python.cc
otk::Timer-ng!! thanks ManMower for this shizznit!
[chaz/openbox] / src / python.cc
index 912f196d332b20733ce2d6258dd22e0483821040..d4cba31e44394fb4d1589ee972066f4bb5b563ac 100644 (file)
@@ -34,6 +34,7 @@ void python_init(char *argv0)
   PyRun_SimpleString("from openbox import *;");
   // set up convenience global variables
   PyRun_SimpleString("openbox = Openbox_instance()");
+  PyRun_SimpleString("display = Display_instance()");
 
   // set up access to the python global variables
   PyObject *obmodule = PyImport_AddModule("__main__");
@@ -213,7 +214,7 @@ PyObject *send_client_msg(Window target, int type, Window about,
   e.xclient.data.l[3] = data3;
   e.xclient.data.l[4] = data4;
 
-  XSendEvent(otk::Display::display, target, false,
+  XSendEvent(**otk::display, target, false,
              SubstructureRedirectMask | SubstructureNotifyMask,
              &e);
   Py_INCREF(Py_None); return Py_None;
This page took 0.020382 seconds and 4 git commands to generate.