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(input): correct touch dislocation #2893

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Moeweb647252
Copy link

@Moeweb647252 Moeweb647252 commented Jul 19, 2024

Description

Fix touch dislocation on multiscreen devices

Screenshot

Issues Fixed or Closed

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Dependency update (updates to dependencies)
  • Documentation update (changes to documentation)
  • Repository update (changes to repository files, e.g. .github/...)

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated the in code docstring/documentation-blocks for new or existing methods/components

Branch Updates

LizardByte requires that branches be up-to-date before merging. This means that after any PR is merged, this branch
must be updated before it can be merged. You must also
Allow edits from maintainers.

  • I want maintainers to keep my branch updated

@CLAassistant
Copy link

CLAassistant commented Jul 19, 2024

CLA assistant check
All committers have signed the CLA.

Comment on lines +711 to +712
this->env_width = ::platf::kms::env_monitors[monitor].width;
this->env_height = ::platf::kms::env_monitors[monitor].height;
Copy link
Member

Choose a reason for hiding this comment

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

Is there any risk with this breaking if we disconnect or add a monitor after sunshine was started? Can some id be used instead of index to improve safety?

Copy link
Author

Choose a reason for hiding this comment

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

Functions that hanlle monitor change should take action to keep env_monitors updated, otherwise it might cause other issues.

@Hazer
Copy link
Member

Hazer commented Aug 25, 2024

@ReenigneArcher do you know someone that could test this?

@ReenigneArcher
Copy link
Member

@Hazer Unfortunately, I don't.

Copy link
Collaborator

@cgutman cgutman left a comment

Choose a reason for hiding this comment

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

I tested this locally on my Fedora 40 machine with a 3 screen configuration in GNOME. It seems to help (the mouse is on the correct screen now), but it's not a fully correct solution as the mouse cursor doesn't line up with where Moonlight expects it to be. You can see this if you run absolute mouse mode and press Ctrl+Alt+Shift+C to have both client and server cursors visible together.

Copy link

sonarcloud bot commented Sep 4, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
1 New issue
1 New Code Smells (required ≤ 0)
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

@ReenigneArcher ReenigneArcher changed the title Fix touch dislocation fix(input): correct touch dislocation Oct 19, 2024
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.

5 participants