Skip to content

fix: fixes error when a utility frame is the current frame #837

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ryanobjc
Copy link

On Mac OS X, small frames that don't allow user focus may be selected when the process filter is processed. By walking up the parent-frame list, we can get to the frame that the user is actually able to use, and thus the call to (get-mru-window) does not return nil and the whole process filter aborts.

Should fix bug #828

On Mac OS X, small frames that don't seem to have any windows may be
selected when the process filter is processed.  By walking up the
parent-frame list, we can get to the frame that the user is actually
able to use, and thus the call to (get-mru-window) does not return nil
and the whole process filter aborts.

Should fix bug emacs-lsp#828
@cvb
Copy link

cvb commented Apr 23, 2025

Can confirm that this fixes the issue on OSX. Guys, could you please give this some attention? This bug completely breaks dap-mode on OSX.

GNU Emacs 29.4 (build 1, aarch64-apple-darwin24.3.0, NS appkit-2575.40 Version 15.3.1 (Build 24D70)) of 2025-02-25
applied the patch to the master

@SerialVelocity
Copy link

@jcs090218 Sorry for the direct ping, but would you be able to take a look at this?

It also fixes dap-java for me locally (also using Mac OS X, Emacs 29)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants