Closed geekosaur closed 2 years ago
It's only the logHook
that reports repeatedly… but it doesn't start until debugManageHookOn
has been triggered, so it's not simply ignoring the flag in XS
. Nor does the manageHook
part continue to report, so it's clearly turning the XS
flag off. This seems odd.
Okay, code answered that. It's two flags instead of one, controlling respectively the logHook
and manageHook
. So now I have to remember why I did it that way; in particular, it may manage multiple windows before the logHook
and can't know which is wanted, so it should log both. I think I simplify this to a single Bool
which is enabled in the key event and disabled in the logHook
.
…Oh wait: separate is because of the always-ManageDebug case, right.
Oddly, it looks like the code does the right thing (checking and disabling the logHook
debugging flag.
It's also the definition of Boolean blindness, so I may rewrite just to make things more obvious. That might even fix the bug.
Also the note above about multiple managed windows means the logHook
should disable both flags instead of the manageHook
disabling its flag.
For the record, the flags are in order the logHook
trigger (always activated by the manageHook
) and the key trigger for the triggered manageHook
(ignored if the unconditional manageHook
is used).
Well, that seems to have fixed it, so I presume I had some confusion about which Bool
was which somewhere.
(this is basically a reminder for myself)
Problem Description
I used
X.H.ManageDebug
to debug an issue with aVirtualBox
window going into a tight loop on startup (which I still haven't solved, but it appears to have fixed itself in the meantime, possibly because it's some first-run greeting window). Afterward I noticed that thelogHook
portion continues to report on every invocation of thelogHook
instead of shutting itself off after the first run.Steps to Reproduce
xmonad.hs
withdebugManageHookOn
logHook
runsConfiguration File
Please include the smallest full configuration file that reproduces the problem you are experiencing:
Checklist
[x] I've read CONTRIBUTING.md
I tested my configuration
xmonad
version 0.17.0.9 (commit 831ca49 if using git)xmonad-contrib
version 0.17.0.9 (commit 923c5a2 if using git)