mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 03:20:21 -07:00
fixup! X.L.OnHost: Query gethostname if $HOST lookup fails
This commit is contained in:
parent
a96a2031f6
commit
2973c283ae
@ -128,9 +128,9 @@ instance (LayoutClass l1 a, LayoutClass l2 a, Show a) => LayoutClass (OnHost l1
|
|||||||
else do (wrs, mlt') <- runLayout (W.Workspace i lf ms) r
|
else do (wrs, mlt') <- runLayout (W.Workspace i lf ms) r
|
||||||
return (wrs, Just $ mkNewOnHostF p mlt')
|
return (wrs, Just $ mkNewOnHostF p mlt')
|
||||||
|
|
||||||
handleMessage (OnHost hosts bool lt lf) m
|
handleMessage (OnHost hosts choice lt lf) m
|
||||||
| bool = handleMessage lt m >>= maybe (return Nothing) (\nt -> return . Just $ OnHost hosts bool nt lf)
|
| choice = handleMessage lt m >>= maybe (return Nothing) (\nt -> return . Just $ OnHost hosts choice nt lf)
|
||||||
| otherwise = handleMessage lf m >>= maybe (return Nothing) (return . Just . OnHost hosts bool lt)
|
| otherwise = handleMessage lf m >>= maybe (return Nothing) (return . Just . OnHost hosts choice lt)
|
||||||
|
|
||||||
description (OnHost _ True l1 _) = description l1
|
description (OnHost _ True l1 _) = description l1
|
||||||
description (OnHost _ _ _ l2) = description l2
|
description (OnHost _ _ _ l2) = description l2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user