Merge from trunk.
Merge from trunk.
Allow resizing a window to be initiated from a menu associated with the root
window. Previously only menus from the window itself would work.
Remove unused call to XmbTextExtents().
Reformat.
Simplify a few tests.
Remove unused variable.
A few small fixes.