Discussion:
[xmonad] Xmobar covered by window on startup screen
Chris Bell
2016-05-04 18:16:33 UTC
Permalink
Hi all,

I've been running into an interesting problem lately. I use a very basic
xmonad/xmobar setup (system info below); not much more than the sample plus some hotkeys.
Recently, when I start xmonad (either with startx or MOD+q) xmobar is
covered by any windows, as if I did not have manageDocks in my
manageHook function. However, it only does this on the screen/desktop
that is active when xmonad is (re)started.

So, when I first start xmonad on a single-screen machine, workspace 1
(the default startup workspace) will show this issue, but none of the
other workspaces will. I can 'fix' this by changing to workspace 9
(which I rarely use), and restarting xmonad with MOD+q. Then, on
workspace 9, windows will cover xmobar, but not on 1-8.

On multi-screen desktops, this occurs with ALL initial workspaces - on
my 4-screen desktop, on startup, windows will cover xmobar on workspaces
1-4, but not 5-9 (until I switch to 6-9 and restart xmonad).

I have been experiencing this problem for a few months now, but haven't
mentioned it because the "workaround" does the job, as long as I have
enough unused workspaces. I'd really like to figure out what I broke or
what I need to change...

System Info
OS: Arch Linux (64-bit, of course)
xmonad: v0.12
xmobar: v0.23.1

Xmonad configuration (xmonad.hs): http://pastebin.com/HWhCqYsi

Thanks!

Chris
Anthony Brice
2016-05-04 18:30:14 UTC
Permalink
Hi Chris,

Have you seen this post <https://bbs.archlinux.org/viewtopic.php?id=206890>
in the Arch forums? The code in masterdisaster's second post fixed my
problem when Xmobar was always covered by the first window I opened.
Post by Chris Bell
Hi all,
I've been running into an interesting problem lately. I use a very basic
xmonad/xmobar setup (system info below); not much more than the sample plus some hotkeys.
Recently, when I start xmonad (either with startx or MOD+q) xmobar is
covered by any windows, as if I did not have manageDocks in my
manageHook function. However, it only does this on the screen/desktop
that is active when xmonad is (re)started.
So, when I first start xmonad on a single-screen machine, workspace 1
(the default startup workspace) will show this issue, but none of the
other workspaces will. I can 'fix' this by changing to workspace 9
(which I rarely use), and restarting xmonad with MOD+q. Then, on
workspace 9, windows will cover xmobar, but not on 1-8.
On multi-screen desktops, this occurs with ALL initial workspaces - on
my 4-screen desktop, on startup, windows will cover xmobar on workspaces
1-4, but not 5-9 (until I switch to 6-9 and restart xmonad).
I have been experiencing this problem for a few months now, but haven't
mentioned it because the "workaround" does the job, as long as I have
enough unused workspaces. I'd really like to figure out what I broke or
what I need to change...
System Info
OS: Arch Linux (64-bit, of course)
xmonad: v0.12
xmobar: v0.23.1
Xmonad configuration (xmonad.hs): http://pastebin.com/HWhCqYsi
Thanks!
Chris
_______________________________________________
xmonad mailing list
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
Chris Bell
2016-05-04 18:54:01 UTC
Permalink
Thanks!! Adding docksEventHook seems to have worked. Thanks again!
Post by Anthony Brice
Hi Chris,
Have you seen this post <https://bbs.archlinux.org/viewtopic.php?id=206890>
in the Arch forums? The code in masterdisaster's second post fixed my
problem when Xmobar was always covered by the first window I opened.
Post by Chris Bell
Hi all,
I've been running into an interesting problem lately. I use a very basic
xmonad/xmobar setup (system info below); not much more than the sample
plus some hotkeys.
Recently, when I start xmonad (either with startx or MOD+q) xmobar is
covered by any windows, as if I did not have manageDocks in my
manageHook function. However, it only does this on the screen/desktop
that is active when xmonad is (re)started.
So, when I first start xmonad on a single-screen machine, workspace 1
(the default startup workspace) will show this issue, but none of the
other workspaces will. I can 'fix' this by changing to workspace 9
(which I rarely use), and restarting xmonad with MOD+q. Then, on
workspace 9, windows will cover xmobar, but not on 1-8.
On multi-screen desktops, this occurs with ALL initial workspaces - on
my 4-screen desktop, on startup, windows will cover xmobar on workspaces
1-4, but not 5-9 (until I switch to 6-9 and restart xmonad).
I have been experiencing this problem for a few months now, but haven't
mentioned it because the "workaround" does the job, as long as I have
enough unused workspaces. I'd really like to figure out what I broke or
what I need to change...
System Info
OS: Arch Linux (64-bit, of course)
xmonad: v0.12
xmobar: v0.23.1
Xmonad configuration (xmonad.hs): http://pastebin.com/HWhCqYsi
Thanks!
Chris
_______________________________________________
xmonad mailing list
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
Brandon Allbery
2016-05-04 18:49:35 UTC
Permalink
Post by Chris Bell
I've been running into an interesting problem lately. I use a very basic
xmonad/xmobar setup (system info below); not much more than the sample plus some hotkeys.
Recently, when I start xmonad (either with startx or MOD+q) xmobar is
covered by any windows, as if I did not have manageDocks in my
manageHook function. However, it only does this on the screen/desktop
that is active when xmonad is (re)started.
If you are running 0.12 then this is at least partly the strut caching bug;
downgrade to 0.11 or upgrade to git HEAD.
For xmonad-contrib HEAD, docksEventHook is no longer optional (as of 0.12
release) and there is a docksStartupHook that is also required (this is not
in 0.12).
--
brandon s allbery kf8nh sine nomine associates
***@gmail.com ***@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
Loading...