mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-01 14:39:39 +00:00
vanadium/xmonad: return Nothing if the layout is not changed
This commit is contained in:
parent
24775459ed
commit
040afef280
2 changed files with 8 additions and 6 deletions
|
|
@ -23,8 +23,10 @@ instance LayoutClass SetMasterNTall a where
|
|||
let ws' = W.Workspace t (unSetMasterNTall l) s
|
||||
in (fmap . fmap . fmap) SetMasterNTall . runLayout ws'
|
||||
|
||||
handleMessage (SetMasterNTall l@(ResizableTall _n0 d f s)) mess
|
||||
| Just (SetMasterN n) <- fromMessage mess = pure $ Just $ SetMasterNTall $ ResizableTall n d f s
|
||||
handleMessage (SetMasterNTall l@(ResizableTall n0 d f s)) mess
|
||||
| Just (SetMasterN n) <- fromMessage mess = pure $
|
||||
if n0 /= n then Just $ SetMasterNTall $ ResizableTall n d f s
|
||||
else Nothing
|
||||
| otherwise = (fmap . fmap) SetMasterNTall . handleMessage l $ mess
|
||||
|
||||
description (SetMasterNTall l) = description l
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue