question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mouse position seems to have variable offset on kubuntu

See original GitHub issue

Environment

  • LWJGL version: 3.2.3
  • LWJGL build #: not sure
  • Java version: java 11 (jet brains run time/corretto)
  • Platform: Kubuntu Linux 20.10
  • Module: not sure

Description

I seem to be having issues other people don’t have with the mouse position callback It seems my mouse has a variable offset which grows or shrinks depending on where my mouse is on the screen.

I have reproduced it on the guys end doing the tutorial and he seems to not have the issue or anybody else. image

here is the code… https://github.com/Shadowblitz16/Jade

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Spasicommented, Sep 5, 2021

Hey @Shadowblitz16, thanks for the test project.

The problem you’re seeing is a simple rendering bug and has nothing to do with mouse input. The code is missing a call to glViewport, which usually happens within a callback passed to glfwSetFramebufferSizeCallback. Everything is fine when it’s added. You probably have a HiDPI monitor (with scale set to >100%) while other users don’t.

0reactions
Shadowblitz16commented, Sep 9, 2021

ok thankyou

Read more comments on GitHub >

github_iconTop Results From Across the Web

Offset between cursor and actual click location - KDE Forums
I have a convertible Laptop with a touch screen and stylus / pen support. I've set global scaling to 125%. This offset changes...
Read more >
Wacom - Cursor offset in a few programs only
When putting the window there, minus KDE's taskbar and the program's titlebar, it seems to click directly below the cursor's position.
Read more >
2011066 – Real cursor position is slightly offset from ...
For me the real position is always slightly above and to the left of the 'apparent' position. This is particularly noticeable when drag-selecting...
Read more >
MouseY has an offset in a SDL decorated window · Issue #2151
My Issue/Question: The mouse y position is offset by the height of the title bar. ... In this piece of code the mouse...
Read more >
How to fix Java applications mouse pointer offset in Awesome ...
You need to add special definitions to the source for the window manager, in my experience. I had this happen to me a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found