I made a tiny patch for the main Xmonad code, to allow constrained
resizing of windows. Hold down mod-SHIFT-button3 instead of just
mod-button3, and the window will resize with width=height. I find this
useful for resizing analogue xclock without getting an out-of-shape
clock face.
If it's not deemed useful for mainline I've packaged it as a
contribution as well.
constrainResize.mainline.diff
- touches Config.hs and Operations.hs
or
constrainResize.contrib.diff
- adds XMonadContrib/ConstrainedResize.hs
- touches MetaModule.hs
Cheers,
Dougal.
PS. This is my second attempt at submitting a patch here. Is there
nowhere one can submit a patch without first signing up? The ease of
'darcs send' is more than counteracted by the annoyance of creating an
account... /grumble grumble
-------------- next part --------------
A non-text attachment was scrubbed...
Name: constrainResize.mainline.diff
Type: text/x-patch
Size: 2058 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/xmonad/attachments/20071021/4f8c06ba/constrainResize.mainline.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: constrainResize.contrib.diff
Type: text/x-patch
Size: 9317 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/xmonad/attachments/20071021/4f8c06ba/constrainResize.contrib.bin