
Hi all,
Here's another shot at an interface that will allow prettier passing of
messages to the layout, so we can send interesting types. This patch adds
one warning in Main, since I removed the type of handle, so it could be
inferred from the type of keys. We could hardcode it to give an
X LayoutMsg (), but that seems uglier, to me. We could also consider
importing Main into Config (and renaming main), in which case handle (and
Main) would be functions of keys, and the name "keys" itself wouldn't be
hard-coded. It does seem prettier to make Config import all the other
modules, rather than having Config itself imported by another module.
I'm still not sure that this is a good plan. As long as our layout is a
pure function, we won't be able to do things that ion does, such as being
able to drag a tab from one location to another to move a window. That's
not a big deal, but if possible it'd be nice (if it can be done cleanly) to
define an API that doesn't limit the capabilities of the window manager.
David
Wed Apr 18 08:02:05 PDT 2007 David Roundy