diff options
| author | Po Lu | 2022-05-17 09:40:57 +0000 |
|---|---|---|
| committer | Po Lu | 2022-05-17 09:59:20 +0000 |
| commit | e9ad64ef92e7e8292ba596a97e114cbc91c6faa3 (patch) | |
| tree | ce3845fc02a66a005da8f654cc55009c2d79a974 /doc | |
| parent | dc239872cc248414f121e0455d447ef00f9b4cc4 (diff) | |
| download | emacs-e9ad64ef92e7e8292ba596a97e114cbc91c6faa3.tar.gz emacs-e9ad64ef92e7e8292ba596a97e114cbc91c6faa3.zip | |
Rewrite Haiku frame geometry code to handle decorator frames
* doc/lispref/frames.texi (Frame Layout): Document changes to
Haiku frame layout.
* src/haiku_support.cc (class EmacsWindow, MoveToIncludingFrame)
(EmacsMoveTo, MakeFullscreen): Move to an offset including the
decorator frames.
(be_get_window_decorator_dimensions):
(be_get_window_decorator_frame): New functions.
* src/haiku_support.h: Update prototypes.
* src/haikufns.c (haiku_update_after_decoration_change): New
function.
(haiku_create_frame, haiku_set_undecorated)
(haiku_set_override_redirect): Call that function.
(frame_geometry): Actually calculate frame geometry based on
decorator and frame sizes.
* src/haikuterm.c (haiku_coords_from_parent): Use frame width
instead.
(haiku_read_socket): Set left and top positions based on
decorator width and height.
* src/haikuterm.h (struct haiku_output): New field `frame_x' and
`frame_y'.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/frames.texi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi index 3bbeef005bd..5853c45b79e 100644 --- a/doc/lispref/frames.texi +++ b/doc/lispref/frames.texi | |||
| @@ -683,9 +683,9 @@ The position of the top left corner of the native frame specifies the | |||
| 683 | indicate that position for the various builds: | 683 | indicate that position for the various builds: |
| 684 | 684 | ||
| 685 | @itemize @w{} | 685 | @itemize @w{} |
| 686 | @item (1) non-toolkit and terminal frames | 686 | @item (1) non-toolkit, Haiku, and terminal frames |
| 687 | 687 | ||
| 688 | @item (2) Lucid, Motif, MS-Windows, and Haiku frames | 688 | @item (2) Lucid, Motif, and MS-Windows frames |
| 689 | 689 | ||
| 690 | @item (3) GTK+ and NS frames | 690 | @item (3) GTK+ and NS frames |
| 691 | @end itemize | 691 | @end itemize |