Minimize: Replaced calls to 'sendMessage' (BW.focusDown) and 'windows' with alternative methods

Calling these functions during message handling results in the loss of layout state.
This fixes a number of bugs related to the combination of X.L.Minimize with a decoration.
This commit is contained in:
Jan Vornberger
2010-07-27 22:48:41 +00:00
parent 980a22434b
commit 82147d137c
6 changed files with 17 additions and 14 deletions

View File

@@ -158,7 +158,7 @@ imageTitleBarButtonHandler mainw distFromLeft distFromRight = do
then focus mainw >> sendMessage (maximizeRestore mainw) >> return True
else if (fi distFromRight >= minimizeButtonOffset &&
fi distFromRight <= minimizeButtonOffset + buttonSize)
then focus mainw >> sendMessage (MinimizeWin mainw) >> return True
then focus mainw >> minimizeWindow mainw >> return True
else return False
action