mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-01-07 17:29:56 +01:00
Linux: Replaced obsolete hasFocus with isFocusOwner
This commit is contained in:
parent
a47e419168
commit
fe7cde5cc5
|
|
@ -37,8 +37,6 @@ import java.nio.ByteBuffer;
|
|||
import org.lwjgl.LWJGLException;
|
||||
import org.lwjgl.LWJGLUtil;
|
||||
|
||||
import java.awt.event.FocusEvent;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author elias_naur <elias_naur@users.sourceforge.net>
|
||||
|
|
@ -141,7 +139,7 @@ final class LinuxAWTInput extends AbstractAWTInput {
|
|||
}
|
||||
|
||||
private void checkFocus() {
|
||||
if (getCanvas().hasFocus()) {
|
||||
if (getCanvas().isFocusOwner()) {
|
||||
input_released = false;
|
||||
} else {
|
||||
input_released = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue