under the pointer.
This is very useful for window management. When you have many
windows open and you want to close some, you can just open
revelation and close the windows with middle mouse.
I have maintained your coding style, but I recommend not testing
boolean variables against true/false. So instead of
if mouse.buttons[1] == true then ...
you would have
if mouse.buttons[1] then
and instead of
if mouse.buttons[1] == false then -- doesn't actually appear in
code
you would have
if not mouse.buttons[1] then ...
That's just a minor niggle though.