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

Move ensure_pointer() call to oswitch #2035

Merged
merged 1 commit into from
Nov 27, 2023
Merged

Move ensure_pointer() call to oswitch #2035

merged 1 commit into from
Nov 27, 2023

Conversation

soreau
Copy link
Member

@soreau soreau commented Nov 27, 2023

When a view is opened on another output than the focused one, i.e. with window-rules plugin, focus_output() was calling ensure_pointer() which was moving the pointer to the center of the output where the view was opened. Here we move the call to oswitch so this only happens when the user would want it to.

Fixes #2013.

When a view is opened on another output than the focused one, i.e.
with window-rules plugin, focus_output() was calling ensure_pointer()
which was moving the pointer to the center of the output where the
view was opened. Here we move the call to oswitch so this only
happens when the user would want it to.

Fixes #2013.
Copy link
Member

@ammen99 ammen99 left a comment

Choose a reason for hiding this comment

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

Thanks!

@ammen99 ammen99 merged commit d6abead into master Nov 27, 2023
8 checks passed
@ammen99 ammen99 deleted the fix-2013 branch November 27, 2023 19:36
ammen99 pushed a commit that referenced this pull request Mar 13, 2024
When a view is opened on another output than the focused one, i.e.
with window-rules plugin, focus_output() was calling ensure_pointer()
which was moving the pointer to the center of the output where the
view was opened. Here we move the call to oswitch so this only
happens when the user would want it to.

Fixes #2013.
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.

cursor moves along with window placed on different output via window-rule
2 participants