mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-01 12:41:52 -07:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user