mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-04 19:10:37 -08:00
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:
parent
22070c6f2f
commit
b0140bcd44
4 changed files with 72 additions and 3 deletions
|
|
@ -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. */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue