]> Dogcows Code - chaz/openbox/blobdiff - wrap/ob.i
provide access to the desktop names
[chaz/openbox] / wrap / ob.i
index b4c94622c7f93d7058449b0e30b46d88e9f4bb46..7e95f6024ae024d867e01d273eadba684920a54d 100644 (file)
--- 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"
   }
 };
 
+// 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;
This page took 0.022386 seconds and 4 git commands to generate.