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/Config/Bluetile.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'XMonad/Config') diff --git a/XMonad/Config/Bluetile.hs b/XMonad/Config/Bluetile.hs index 10b0f45..d80e70c 100644 --- a/XMonad/Config/Bluetile.hs +++ b/XMonad/Config/Bluetile.hs @@ -141,7 +141,7 @@ bluetileKeys conf@(XConfig {XMonad.modMask = modMask'}) = M.fromList $ , ((modMask' , xK_z), withFocused (sendMessage . maximizeRestore)) -- Minimizing - , ((modMask', xK_m ), withFocused (\f -> sendMessage (MinimizeWin f))) + , ((modMask', xK_m ), withFocused minimizeWindow) , ((modMask' .|. shiftMask, xK_m ), sendMessage RestoreNextMinimizedWin) ] ++ -- cgit v1.2.3