I have a problem where my button bindings sometimes aren't detected
on an empty workspace. It doesn't always happen but can be consistently
reproduced with the following steps.
My .xinitrc:
#!/bin/sh
conky &
ion3
My cfg_binding.lua:
defbindings("WScreen", {
bdoc("Switch to next/previous object within current screen."),
kpress("Super_L", "WScreen.switch_prev(_)"),
kpress("Super_R", "WScreen.switch_next(_)"),
bdoc("Display the main menu."),
kpress("Menu", "mod_menu.bigmenu(_, _sub, 'mainmenu')"),
})
1) start X without a .ion3 directory
2) use F9 to create an empty workspace named Root
3) exit X
4) add cfg_binding.lua to .ion3 directory
5) add the following line to global cfg_ion.lua:
dopath("cfg_binding")
6) start X again
7) use mouse to focus right split (i.e. empty split, not conky split)
8) Use Menu key to bring up menu and 'Run' xterm
9) exit xterm
10) use Super_L to switch to Root (i.e. empty workspace)
At this point Super_L and Menu won't do anything when pressed.
If I use the mouse to bring up a menu the key bindings will
start working again. Also, if I switch focus to the conky
split before using Super_L to go to the the empty workspace
the keys will function as expected.
I'm using ion-3-20080825 and lua-5.1.4. Conky is configured
to draw to it's own window, not to the root window.