On Sat, 20 Sep 2008, Tuomo Valkonen wrote:
What it should really
do is: a) listen to screen_managed_changed_hook (RTFM for details) for
structural changes, and b) listen to region_notify_hook with detail
"name" for workspace name changes.
I did both of these as you said, and everything works great! I'll submit
a fix to you via darcs for the scripts page soon.
Meanwhile, here're the changes if anyone is interested.
------------------------------------------------------------------------------
--- statusbar_workspace.lua Fri May 11 01:58:41 2007
+++ .ion3/statusbar_workspace.lua Sat Sep 20 23:45:37 2008
@@ -107,4 +107,13 @@
end)
end
-ioncore.get_hook("region_notify_hook"):add(update_workspace)
+local function update_workspace_wrap(reg, how)
+ if how ~= "name" then
+ return
+ end
+
+ update_workspace()
+end
+
+ioncore.get_hook("region_notify_hook"):add(update_workspace_wrap)
+ioncore.get_hook("screen_managed_changed_hook"):add(update_workspace)
------------------------------------------------------------------------------
Thanks a bunch again, Tuomo!