Skip to content
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

Fix layershell keyboard focus grabs (#4968) #6394

Merged
merged 10 commits into from
Jun 11, 2024

Conversation

outfoxxed
Copy link
Member

Describe your PR, what does it fix/add?

Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)

  • Changing the keyboard focus mode to none will not kick the layer from the seat, even though refocus is called.

Is it ready for merging, or does it need work?

Ready to merge.

@outfoxxed
Copy link
Member Author

Will deal with that tomorrow. Also noticing that, unlike in a nested session, in a root session any mouse presses will result in a press->release if the surface has keyboard interactivity. Don't think this one is my bug due to basically just copying what you did but I'll also take a look tomorrow.

Copy link
Member Author

@outfoxxed outfoxxed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed but I have some questions on the initial implementation. These seem weird.

src/managers/input/InputManager.cpp Outdated Show resolved Hide resolved
src/managers/input/InputManager.cpp Outdated Show resolved Hide resolved
@outfoxxed
Copy link
Member Author

Debugged the weird press-release thing mentioned above #6409

Copy link
Member

@vaxerski vaxerski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you slap a clang-format? it's painful to read the diff with tabs and spaces mixed

src/desktop/LayerSurface.cpp Outdated Show resolved Hide resolved
src/helpers/MiscFunctions.cpp Outdated Show resolved Hide resolved
src/plugins/PluginAPI.cpp Outdated Show resolved Hide resolved
@vaxerski
Copy link
Member

generally code is ok

@outfoxxed
Copy link
Member Author

ran clang format, thats just unrelated junk from it

@outfoxxed
Copy link
Member Author

undid unrelated c-f stuff

Copy link
Member

@vaxerski vaxerski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtv, thanks!

@vaxerski vaxerski merged commit 21b9e31 into hyprwm:main Jun 11, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants