X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=wrap%2Fob.i;h=7e95f6024ae024d867e01d273eadba684920a54d;hb=b18959e1bda52f807f62c95772c69ce3005215a7;hp=b4c94622c7f93d7058449b0e30b46d88e9f4bb46;hpb=7c8c9e998ffc3a9b22e15feeffe77823142ce531;p=chaz%2Fopenbox diff --git a/wrap/ob.i b/wrap/ob.i index b4c94622..7e95f602 100644 --- a/wrap/ob.i +++ b/wrap/ob.i @@ -3,9 +3,7 @@ %module ob %{ -#ifdef HAVE_CONFIG_H -# include "../config.h" -#endif +#include "config.h" #include "frame.hh" #include "openbox.hh" @@ -47,9 +45,11 @@ } }; +// do this through events +%ignore ob::Screen::showDesktop(bool); + %import "otk.i" -%import "widgetbase.hh" %import "actions.hh" %include "openbox.hh" @@ -68,8 +68,8 @@ void set_reset_key(const std::string &key) } void send_client_msg(Window target, Atom type, Window about, - long data, long data1, long data2, - long data3, long data4) + long data=0, long data1=0, long data2=0, + long data3=0, long data4=0) { XEvent e; e.xclient.type = ClientMessage; @@ -87,7 +87,7 @@ void send_client_msg(Window target, Atom type, Window about, &e); } -void execute(const std::string &bin, int screen) +void execute(const std::string &bin, int screen=0) { if (screen >= ScreenCount(**otk::display)) screen = 0;