<div dir="ltr">For several years now, xfce4-panel has required ManageDocks' docksEventHook to function properly.<div><br></div><div>Also note that, from xmonad 0.12 on, you need more than manageDocks and avoidStruts in *all* cases: you need both docksEventHook and (as of 0.13) docksStartupHook as well. Starting in 0.13 we recommend using the new "docks" combinator instead of the individual hooks. (You would compose it with the "ewmh" combinator in your config. Speaking of which... why do you explicitly use ewmhDesktopsLogHook and ewmhDesktopsEventHook? "ewmh" already adds them. (Fullscreen is not added automatically, because you might choose to use XMonad.Layout.Fullscreen's fullscreen event hook instead which provides more control by communicating with its layout hook instead of just making the window a full screen float.)</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 29, 2017 at 5:03 AM, Tom Hirschowitz <span dir="ltr"><<a href="mailto:tom.hirschowitz@univ-smb.fr" target="_blank">tom.hirschowitz@univ-smb.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Dear all,<br>
<br>
I'm using xfce4 with xmonad and panel autohide. The problem is that,<br>
depending on which windows are present, the panel sometimes does not<br>
unhide. In my experience, it only unhides to cover windows that were<br>
spawned after it. E.g., if it doesn't unhide over a given window and I<br>
restart it, then it does unhide fine.<br>
<br>
Snippets of my xmonad.hs are included below.<br>
<br>
Does anyone have an idea how to sort this out?<br>
<br>
Thanks,<br>
Tom<br>
<br>
conf = ewmh xfceConfig<br>
        { manageHook        = pbManageHook <+> myManageHook<br>
                                           <+> manageDocks<br>
                                           <+> manageHook xfceConfig<br>
        , layoutHook        = myLayoutHook<br>
        , handleEventHook   = ewmhDesktopsEventHook <+> fullscreenEventHook<br>
        , borderWidth       = 4<br>
        , focusedBorderColor= "#80c0ff"<br>
        , normalBorderColor = "#13294e"<br>
        , workspaces        = map show [1 .. 9 :: Int]<br>
        , modMask           = mod4Mask<br>
        , keys              = myKeys<br>
        , terminal          = "xfce4-terminal"<br>
         }<br>
<br>
-- Main --<br>
main :: IO ()<br>
main =<br>
    xmonad $ conf<br>
        { startupHook       = startupHook conf<br>
                            >> setWMName "LG3D" -- Java app focus fix<br>
        , logHook           =  ewmhDesktopsLogHook<br>
         }<br>
<br>
-- Layouts --<br>
myLayoutHook = desktopLayoutModifiers $ avoidStruts $ Full<br>
<br>
[...]<br>
<br>
-- ManageHook --<br>
pbManageHook :: ManageHook<br>
pbManageHook = composeAll $ concat<br>
    [ [ manageDocks ]<br>
    , [ manageHook defaultConfig ]<br>
    , [ isDialog --> doCenterFloat ]<br>
    , [ isFullscreen --> doFullFloat ]<br>
    , [ fmap not isDialog --> doF avoidMaster ]<br>
    ]<br>
<br>
[...]<br>
<br>
-- Helpers --<br>
-- avoidMaster:  Avoid the master window, but otherwise manage new windows normally<br>
avoidMaster :: W.StackSet i l a s sd -> W.StackSet i l a s sd<br>
avoidMaster = W.modify' $ \c -> case c of<br>
    W.Stack t [] (r:rs) -> W.Stack t [r] rs<br>
    otherwise           -> c<br>
______________________________<wbr>_________________<br>
xmonad mailing list<br>
<a href="mailto:xmonad@haskell.org">xmonad@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/xmonad</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</div>