-
-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XMonad.Prompt freezes if alwaysHighlight= True and maxComplRows is not Nothing #217
Comments
What version of xmonad are you using? |
0.13, both installed from cabal or compiled from github. I tried recompiling everything with 8.0.2 and the problem remains. Minimal file:
|
And when you run the version compiled from github, does it still give the same error In fact, line 911 of |
Sorry, for the git version it becomes row 914 |
So line 914 is this:
in what situations could Just a guess at this point but perhaps the offending change is contained in this commit: 57c00b1#diff-748083b353b28f1e3caf808fbfb0f470 |
I found out that when the error occurs, d seems not valid. Specifically, if I print d I get |
https://github.com/xmonad/xmonad-contrib/blob/master/XMonad/Prompt.hs#L420 and later stuffed into the |
When the error does not occur, d contains something that appears to be a pointer. Is such a pointer actually from a list of pointers? |
It's a pointer obtained from C to the Xlib |
And I don't think it should ever come from a list, since we can only manage one Xlib Display / Screen at a time. But |
Fix XMonad.Prompt wraparound when maxComplRows not Nothing #217
Really thank you very much, that perfectly solved the issue! |
Problem Description
Especially for XMonad.Prompt.Prompt (but the bug holds for XMonad.Prompt.Window) I set alwaysHighlight to True (to avoid the necessity of pressing tab for selection) but to keep the prompt window reasonably small I set maxComplRows to Just 3
If I have enough choices, so that some of them are not shown, and I keep pressing tab, when I select the first "off screen" one, the prompt freezes. To be specific, the prompt stays there, other xmonad keybindings become available (for instance, switching workspace) while applications do not receive keystrokes anymore (the mouse can be used, however).
stdout reports
user error (Pattern match failure in do expression at XMonad/Prompt.hs:911:3-14)
Expected behavior: as when alwayHighlight is false, complete the prompt with the first invisible entry.
Configuration File
, ((myModKey .|. shiftMask, xK_b ), windowPrompt def{maxComplRows=Just 3,alwaysHighlight = True} Bring allWindows)
Checklist
The text was updated successfully, but these errors were encountered: