Building on yesterday’s code, here’s the latest version:
At this point, the similarities to Woopsi should be apparent. This is a basic but workable window manager for the canvas tag. New things since yesterday include window and button gadgets, a top-level container gadget, event handling (click, release, release outside, focus and blur), focus and blur functionality, and probably some other stuff that I’m forgetting.
As for why I’m doing this - I haven’t the faintest idea. Seemed like a good idea at the time.