mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-24 06:20:43 -08:00
Fix frame focus tracking under Android
* java/org/gnu/emacs/EmacsActivity.java (invalidateFocus): New argument WHENCE, a unique number identifying the circumstances leading up to the call. All callers changed. (attachWindow): Call `invalidateFocus' from the UI thread. (onWindowFocusChanged): Don't remove activity from `focusedActivities' if it already exists should `hasWindowFocus' return true.
This commit is contained in:
parent
98d62c5f76
commit
c1f8fe09e6
2 changed files with 26 additions and 10 deletions
|
|
@ -240,7 +240,7 @@ public final class EmacsWindow extends EmacsHandleObject
|
|||
}
|
||||
}
|
||||
|
||||
EmacsActivity.invalidateFocus ();
|
||||
EmacsActivity.invalidateFocus (4);
|
||||
|
||||
if (!children.isEmpty ())
|
||||
throw new IllegalStateException ("Trying to destroy window with "
|
||||
|
|
@ -760,7 +760,7 @@ public final class EmacsWindow extends EmacsHandleObject
|
|||
public void
|
||||
onFocusChanged (boolean gainFocus)
|
||||
{
|
||||
EmacsActivity.invalidateFocus ();
|
||||
EmacsActivity.invalidateFocus (gainFocus ? 6 : 5);
|
||||
}
|
||||
|
||||
/* Notice that the activity has been detached or destroyed.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue