aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Layout/ImageButtonDecoration.hs
diff options
context:
space:
mode:
authorJan Vornberger <jan.vornberger@informatik.uni-oldenburg.de>2010-07-28 00:48:41 +0200
committerJan Vornberger <jan.vornberger@informatik.uni-oldenburg.de>2010-07-28 00:48:41 +0200
commitab0d160ac877c9719dd8112e6f06312f3cd69d6c (patch)
treeb3e9b26a52f7a1981645090e4f72eea340a9cff9 /XMonad/Layout/ImageButtonDecoration.hs
parent5217c7c613b3559c65db9de11aec1b744df062cb (diff)
downloadXMonadContrib-ab0d160ac877c9719dd8112e6f06312f3cd69d6c.tar.gz
XMonadContrib-ab0d160ac877c9719dd8112e6f06312f3cd69d6c.tar.xz
XMonadContrib-ab0d160ac877c9719dd8112e6f06312f3cd69d6c.zip
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
Diffstat (limited to 'XMonad/Layout/ImageButtonDecoration.hs')
-rw-r--r--XMonad/Layout/ImageButtonDecoration.hs2
1 files changed, 1 insertions, 1 deletions
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