mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-01 12:41:52 -07:00
Merge branch 'pr/trackfloating'
This commit is contained in:
@@ -433,6 +433,10 @@
|
|||||||
- To make it easier to use, the `xmonadctl` client is now included in
|
- To make it easier to use, the `xmonadctl` client is now included in
|
||||||
`scripts/`.
|
`scripts/`.
|
||||||
|
|
||||||
|
* `XMonad.Layout.TrackFloating`
|
||||||
|
|
||||||
|
- Fixed a bug that prevented changing focus on inactive workspaces.
|
||||||
|
|
||||||
## 0.16
|
## 0.16
|
||||||
|
|
||||||
### Breaking Changes
|
### Breaking Changes
|
||||||
|
@@ -51,7 +51,7 @@ data TrackFloating a = TrackFloating (Maybe Window)
|
|||||||
instance LayoutModifier TrackFloating Window where
|
instance LayoutModifier TrackFloating Window where
|
||||||
modifyLayoutWithUpdate (TrackFloating mw) ws@(W.Workspace{ W.stack = ms }) r
|
modifyLayoutWithUpdate (TrackFloating mw) ws@(W.Workspace{ W.stack = ms }) r
|
||||||
= do
|
= do
|
||||||
xCur <- gets (W.peek . windowset)
|
xCur <- gets (W.peek . W.view (W.tag ws) . windowset)
|
||||||
let isF = xCur /= (W.focus <$> ms)
|
let isF = xCur /= (W.focus <$> ms)
|
||||||
-- use the remembered focus point when true focus differs from
|
-- use the remembered focus point when true focus differs from
|
||||||
-- what this (sub)layout is given, which happens e.g. when true
|
-- what this (sub)layout is given, which happens e.g. when true
|
||||||
@@ -75,7 +75,7 @@ data UseTransientFor a = UseTransientFor deriving (Read,Show,Eq)
|
|||||||
|
|
||||||
instance LayoutModifier UseTransientFor Window where
|
instance LayoutModifier UseTransientFor Window where
|
||||||
modifyLayout _ ws@(W.Workspace{ W.stack = ms }) r = do
|
modifyLayout _ ws@(W.Workspace{ W.stack = ms }) r = do
|
||||||
m <- gets (W.peek . windowset)
|
m <- gets (W.peek . W.view (W.tag ws) . windowset)
|
||||||
d <- asks display
|
d <- asks display
|
||||||
parent <- join <$> T.traverse (io . getTransientForHint d) m
|
parent <- join <$> T.traverse (io . getTransientForHint d) m
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user