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

Screen rotates back to normal when placed flat on desk #2

Open
dalel487 opened this issue Dec 3, 2021 · 0 comments
Open

Screen rotates back to normal when placed flat on desk #2

dalel487 opened this issue Dec 3, 2021 · 0 comments

Comments

@dalel487
Copy link

dalel487 commented Dec 3, 2021

Thanks for this project. Been really useful. I'm also new to GitHub so apologise if I'm posting this in the wrong place.

The only issue I had with the programme was that

  • I'd rotate the screen to portrait
  • put the laptop flat on the desk or at a not so steep angle
  • Because rotation_changed sets the state to 0/normal at the start of each call, the screen gets set back to normal mode. Annoying if using a pen.

To fix this, I'd suggest changing int state to static int state at the start of rotation_changed()

Thanks!

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

No branches or pull requests

1 participant