Implement set_window_size_and_position_hook on Android
* java/org/gnu/emacs/EmacsWindow.java (moveResizeWindow): New method, which alters all of the bounding box of a window at once. * src/android.c (android_init_emacs_window): Load method `move_resize_window'. (android_move_resize_window): Invoke this method, rather than a sequence of operations that will produce two ConfigureNotify events. * src/androidterm.c (android_set_window_size_and_position_1) (android_set_window_size_and_position): New functions; ported from X. (android_create_terminal): Register the same.
This commit is contained in:
@@ -426,6 +426,16 @@ public final class EmacsWindow extends EmacsHandleObject
|
||||
requestViewLayout ();
|
||||
}
|
||||
|
||||
public synchronized void
|
||||
moveResizeWindow (int x, int y, int width, int height)
|
||||
{
|
||||
rect.left = x;
|
||||
rect.top = y;
|
||||
rect.right = x + width;
|
||||
rect.bottom = y + height;
|
||||
requestViewLayout ();
|
||||
}
|
||||
|
||||
/* Return WM layout parameters for an override redirect window with
|
||||
the geometry provided here. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user