Having just sent that last post, I've noticed the following problem in
ion-devel-20030814:
You cannot move windows between frames with the mouse if the window's title
is changing quickly.
Steps to reproduce:
1. Fire up an xterm
2. Run this in the xterm:
while true; do echo -ne "\033]0;`cat /proc/stat | awk '/^intr/ { print $2 }'`\007";
done
/* creates a very quickly changing window title */
3. Try to use the mouse to move the xterm between frames
Relevant section from config file:
ionframe_bindings{
mdrag("Button1", WGenFrame.p_tabdrag, "tab")
}
Note that this code to move windows using the keyboard _does_ work:
function ionws_move_current(ws, frame, dir)
local c = frame:current()
local other = nil
if dir == "left" then
other = ws:left_of(frame) or ws:rightmost()
elseif dir == "right" then
other = ws:right_of(frame) or ws:leftmost()
elseif dir == "up" then
other = ws:above(frame) or ws:lowest()
elseif dir == "down" then
other = ws:below(frame) or ws:topmost()
else
return
end
if c and obj_is(other, "WMPlex") then
other:attach(c, { switchto = true })
end
if other then
other:goto()
end
end
ionws_bindings{
kpress(DEFAULT_MOD.."Control+H", function(ws, frame) ionws_move_current(ws, frame,
"left") end),
kpress(DEFAULT_MOD.."Control+J", function(ws, frame) ionws_move_current(ws, frame,
"down") end),
kpress(DEFAULT_MOD.."Control+K", function(ws, frame) ionws_move_current(ws, frame,
"up") end),
kpress(DEFAULT_MOD.."Control+L", function(ws, frame) ionws_move_current(ws, frame,
"right") end),
}
Regards,
Tom