mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -07:00
add/reformat (commented out) tracing code to SwitchTrans
This commit is contained in:
parent
183b6fb563
commit
39b30296c5
@ -119,8 +119,11 @@ acceptChange st f action =
|
||||
instance LayoutClass SwitchTrans a where
|
||||
description _ = "SwitchTrans"
|
||||
|
||||
doLayout st r s = currLayout st `unLayout` \l ->
|
||||
acceptChange st (fmap . fmap) (doLayout l r s)
|
||||
doLayout st r s = currLayout st `unLayout` \l -> do
|
||||
--io $ hPutStrLn stderr $ "[ST]{ " ++ show st
|
||||
x{- @(_, w) -} <- acceptChange st (fmap . fmap) (doLayout l r s)
|
||||
--io $ hPutStrLn stderr $ "[ST]} " ++ show w
|
||||
return x
|
||||
|
||||
pureLayout st r s = currLayout st `unLayout` \l -> pureLayout l r s
|
||||
|
||||
@ -139,11 +142,15 @@ instance LayoutClass SwitchTrans a where
|
||||
else
|
||||
enable tag alt
|
||||
| Just ReleaseResources <- fromMessage m
|
||||
= currLayout st `unLayout` \cl ->
|
||||
= currLayout st `unLayout` \cl -> do
|
||||
--io $ hPutStrLn stderr $ "[ST]~ " ++ show st
|
||||
acceptChange st fmap (handleMessage cl m)
|
||||
| Just Hide <- fromMessage m
|
||||
= currLayout st `unLayout` \cl ->
|
||||
acceptChange st fmap (handleMessage cl m)
|
||||
= currLayout st `unLayout` \cl -> do
|
||||
--io $ hPutStrLn stderr $ "[ST]< " ++ show st
|
||||
x <- acceptChange st fmap (handleMessage cl m)
|
||||
--io $ hPutStrLn stderr $ "[ST]> " ++ show x
|
||||
return x
|
||||
| otherwise = base st `unLayout` \b -> do
|
||||
x <- handleMessage b m
|
||||
case x of
|
||||
|
Loading…
x
Reference in New Issue
Block a user