Fix omission of updates to child frames on Android
* java/org/gnu/emacs/EmacsView.java (onAttachedFromWindow): Force a layout cycle rather than report exposure immediately. (prepareForLayout): Delete function. * java/org/gnu/emacs/EmacsWindow.java (mapWindow): Remove redundant calls to prepareForLayout. * src/androidterm.c (handle_one_android_event): Do not swap buffers when exposure is registered by a frame only partially updated.
This commit is contained in:
@@ -492,7 +492,6 @@ public final class EmacsWindow extends EmacsHandleObject
|
||||
/* Attach the view. */
|
||||
try
|
||||
{
|
||||
view.prepareForLayout (width, height);
|
||||
windowManager.addView (view, params);
|
||||
|
||||
/* Record the window manager being used in the
|
||||
@@ -517,11 +516,6 @@ public final class EmacsWindow extends EmacsHandleObject
|
||||
public void
|
||||
run ()
|
||||
{
|
||||
/* Prior to mapping the view, set its measuredWidth and
|
||||
measuredHeight to some reasonable value, in order to
|
||||
avoid excessive bitmap dirtying. */
|
||||
|
||||
view.prepareForLayout (width, height);
|
||||
view.setVisibility (View.VISIBLE);
|
||||
|
||||
if (!getDontFocusOnMap ())
|
||||
|
||||
Reference in New Issue
Block a user