mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-26 06:22:45 +00:00
Reapply a portion of 1d3e42f that should not have been reverted
This commit is contained in:
parent
45436c006f
commit
0045c54d8e
@ -598,6 +598,10 @@ public class Game extends Activity implements SurfaceHolder.Callback,
|
|||||||
public void onWindowFocusChanged(boolean hasFocus) {
|
public void onWindowFocusChanged(boolean hasFocus) {
|
||||||
super.onWindowFocusChanged(hasFocus);
|
super.onWindowFocusChanged(hasFocus);
|
||||||
|
|
||||||
|
// We can't guarantee the state of modifiers keys which may have
|
||||||
|
// lifted while focus was not on us. Clear the modifier state.
|
||||||
|
this.modifierFlags = 0;
|
||||||
|
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||||
// Capture is lost when focus is lost, so it must be requested again
|
// Capture is lost when focus is lost, so it must be requested again
|
||||||
// when focus is regained.
|
// when focus is regained.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user