From 345d957e1ea577480f807b892b73c3f52fe913d2 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 9 Jan 2003 22:54:31 +0000 Subject: new python callbacks data, infrastructure. going to rework bindings code. cvs wont work for shit now. but thats life. --- src/openbox.cc | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'src/openbox.cc') diff --git a/src/openbox.cc b/src/openbox.cc index a15f369b..b44a1861 100644 --- a/src/openbox.cc +++ b/src/openbox.cc @@ -288,7 +288,8 @@ void Openbox::showHelp() printf(_("Compile time options:\n\ Debugging: %s\n\ Shape: %s\n\ - Xinerama: %s\n"), + Xinerama: %s\n\ + Xkb: %s\n"), #ifdef DEBUG _("yes"), #else // !DEBUG @@ -302,10 +303,16 @@ void Openbox::showHelp() #endif // SHAPE #ifdef XINERAMA - _("yes") + _("yes"), #else // !XINERAMA - _("no") + _("no"), #endif // XINERAMA + +#ifdef XKB + _("yes") +#else // !XKB + _("no") +#endif // XKB ); } @@ -368,11 +375,8 @@ void Openbox::setFocusedClient(OBClient *c) } // call the python Focus callbacks - EventData *data = new_event_data(_focused_screen->number(), - c ? c->window() : 0, - EventFocus, 0); - Openbox::instance->bindings()->fireEvent(data); - Py_XDECREF((PyObject*)data); + EventData data(_focused_screen->number(), c, EventFocus, 0); + Openbox::instance->bindings()->fireEvent(&data); } void Openbox::execute(int screen, const std::string &bin) -- cgit v1.2.3