Restore TrackFloating behavior to an earlier version.

Thanks for liskni_si for pressing the matter: without this change it is very
broken, with the patch it is still not perfect but still useful.
This commit is contained in:
Adam Vogt
2011-11-20 04:55:38 +00:00
parent cb795c8c75
commit a551d1367c

View File

@@ -45,7 +45,7 @@ data TrackFloating a = TrackFloating
instance LayoutModifier TrackFloating Window where
modifyLayoutWithUpdate os@(TrackFloating wasF mw) ws@(W.Workspace{ W.stack = ms }) r
modifyLayoutWithUpdate os@(TrackFloating _wasF mw) ws@(W.Workspace{ W.stack = ms }) r
= do
winset <- gets windowset
let xCur = fmap W.focus xStack
@@ -57,7 +57,7 @@ instance LayoutModifier TrackFloating Window where
newStack
-- focus is floating, so use the remembered focus point
| Just isF' <- isF,
isF' || wasF,
isF',
Just w <- mw,
Just s <- ms,
Just ns <- find ((==) w . W.focus)