X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fpython.cc;h=d4cba31e44394fb4d1589ee972066f4bb5b563ac;hb=96a9196cbb71b7f8d5e3d98a92b2e59bb1b591a8;hp=912f196d332b20733ce2d6258dd22e0483821040;hpb=9e77a88d269bfafb78e56a646bfacebdd6ff4c5a;p=chaz%2Fopenbox diff --git a/src/python.cc b/src/python.cc index 912f196d..d4cba31e 100644 --- a/src/python.cc +++ b/src/python.cc @@ -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;