Hello everybody.
as i am new to the list first i want to thank the author for his efforts. i have been
using ion for a few days now and yes, i was so impressed that i switched completely.
below is a patch for ion-dock-20030301.
i dont know if i did it properly but it seems to work with sim, wmnet and wmcliphist;
so please give me your feedback :)
-Dominik Brugger
--- dock.c 2003-03-01 16:35:30.000000000 +0100
+++ dock.patched 2003-03-24 18:56:05.000000000 +0100
@@ -5,20 +5,21 @@
*/
#include <string.h>
-#include <wmcore/common.h>
-#include <wmcore/global.h>
-#include <wmcore/objp.h>
-#include <wmcore/thingp.h>
-#include <wmcore/functionp.h>
-#include <wmcore/funtabs.h>
-#include <wmcore/attach.h>
-#include <wmcore/readconfig.h>
-#include <wmcore/property.h>
-#include <wmcore/defer.h>
-#include <wmcore/eventh.h>
-#include <wmcore/clientwin.h>
-#include <wmcore/drawp.h>
+#include <ioncore/common.h>
+#include <ioncore/global.h>
+#include <ioncore/objp.h>
+#include <ioncore/thingp.h>
+#include <ioncore/functionp.h>
+#include <ioncore/funtabs.h>
+#include <ioncore/attach.h>
+#include <ioncore/readconfig.h>
+#include <ioncore/property.h>
+#include <ioncore/defer.h>
+#include <ioncore/eventh.h>
+#include <ioncore/clientwin.h>
+#include <ioncore/drawp.h>
+char dock_module_ion_version[]="20030311-1";
INTRSTRUCT(WCustomDockapp)
INTRSTRUCT(WDockConf)
INTROBJ(WDock)
@@ -189,7 +190,7 @@
};
static bool init_dock(WDock *dock, WScreen *scr)
-{
+{
WRectangle geom = { 0, 0, 1, 1 };
if (!init_window_new((WWindow *)dock, (WWindow *)scr, geom))
@@ -547,11 +548,11 @@
}
}
-bool dock_init()
+bool dock_module_init()
{
read_config_for("ion-dock", dock_opts);
- assert(add_to_funclist(&wmcore_screen_funclist, dock_funtab));
+ assert(add_to_funclist(&ioncore_screen_funclist, dock_funtab));
ADD_HOOK(add_clientwin_alt, add_clientwin_hook);
ADD_HOOK(handle_event_alt, handle_event_hook);
@@ -561,14 +562,14 @@
return TRUE;
}
-void dock_deinit()
+void dock_module_deinit()
{
destroy_docks();
REMOVE_HOOK(handle_event_alt, handle_event_hook);
REMOVE_HOOK(add_clientwin_alt, add_clientwin_hook);
- remove_from_funclist(&wmcore_screen_funclist, dock_funtab);
+ remove_from_funclist(&ioncore_screen_funclist, dock_funtab);
free_custom_dockapps();
}