Skip to content

Conversation

icyflame
Copy link

@icyflame icyflame commented May 9, 2025

Related to #991. This is backport of the PR to the PaperWM extension version targeting Gnome 44. The PR to the develop branch is #1031. Please see that PR for more details.

I have been using PaperWM on a daily basis for the past few months and it is great. One of the
problems that I kept running into repeatedly was paperwm#991. This
issue was reported on Gnome 47. I ran into this problem on Gnome 44.

I attempted a naive fix which simply tries to clean-up all the state instead of crashing. This works
well; I have been using a version of this fix, applied on top of the gnome-44 branch, for the past
month and I have not suffered any `Could not grab modal` crashes.

It would be great if I could get some guidance about whether this fix looks logical, and whether
there might be a way to reproduce this code path somehow. We need to somehow get into
`preview_navigate` (which happens when one uses a keyboard shortcut to switch windows, I believe?)
but get there in a state where the keyboard is already grabbed by something else, thus causing
PaperWM to fail to grab the keyboard. I would really like to fix this issue within PaperWM because I
have not run into any other bug at all and this is a great project!

Signed-off-by: Siddharth Kannan <[email protected]>
@jtaala
Copy link
Collaborator

jtaala commented May 17, 2025

Thanks @icyflame!

I don't use (or have access to) Gnome 44, but I'm happy to merge this one in given you've been running this for the last few weeks.

@jtaala jtaala merged commit 6e270ce into paperwm:gnome-44 May 17, 2025
@jtaala
Copy link
Collaborator

jtaala commented May 17, 2025

This PR has now been merged into Gnome 44 branch, and released on extensions.gnome.org as well.

https://github.com/paperwm/PaperWM/releases/tag/v44.18.1

Thanks.

@icyflame
Copy link
Author

icyflame commented May 18, 2025 via email

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.

2 participants