From ab0d160ac877c9719dd8112e6f06312f3cd69d6c Mon Sep 17 00:00:00 2001 From: Jan Vornberger Date: Wed, 28 Jul 2010 00:48:41 +0200 Subject: Minimize: Replaced calls to 'sendMessage' (BW.focusDown) and 'windows' with alternative methods Ignore-this: 67257480b7b93181967a806fedf6fbc5 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. darcs-hash:20100727224841-594c5-c8ddec3ae634ec96103e332433066b5173a0002a.gz --- XMonad/Layout/ImageButtonDecoration.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'XMonad/Layout/ImageButtonDecoration.hs') diff --git a/XMonad/Layout/ImageButtonDecoration.hs b/XMonad/Layout/ImageButtonDecoration.hs index c8d8453..23c6cc3 100644 --- a/XMonad/Layout/ImageButtonDecoration.hs +++ b/XMonad/Layout/ImageButtonDecoration.hs @@ -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 -- cgit v1.2.3