]> Dogcows Code - chaz/openbox/commitdiff
set the global 'display' var to the otk::Display in use
authorDana Jansens <danakj@orodu.net>
Mon, 13 Jan 2003 09:59:38 +0000 (09:59 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 13 Jan 2003 09:59:38 +0000 (09:59 +0000)
src/python.cc

index 12e74eeea1b0d5f1c6effe5b8206602167b4c465..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__");
This page took 0.023378 seconds and 4 git commands to generate.