mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-08 07:54:05 +00:00
Mouse Grab Bug on Linux Fixed when LWJGL is run as an applet.
This commit is contained in:
parent
8d89b6353e
commit
bbe74afddb
1 changed files with 5 additions and 3 deletions
|
|
@ -871,13 +871,15 @@ final class LinuxDisplay implements DisplayImplementation {
|
|||
return;
|
||||
focused = got_focus;
|
||||
|
||||
if (focused) {
|
||||
acquireInput();
|
||||
}
|
||||
|
||||
if (parent != null && xembedded && focused != parent.hasFocus()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (focused) {
|
||||
acquireInput();
|
||||
} else {
|
||||
if (!focused) {
|
||||
releaseInput();
|
||||
|
||||
if (parent != null && xembedded) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue