]> git.eshelyaron.com Git - emacs.git/commit
Simplify fullscreen management on Haiku
authorPo Lu <luangruo@yahoo.com>
Tue, 22 Mar 2022 11:26:46 +0000 (11:26 +0000)
committerPo Lu <luangruo@yahoo.com>
Tue, 22 Mar 2022 11:27:42 +0000 (11:27 +0000)
commit8757551da09bdccc0080208bfec7116f4330b3c5
treec217f7c873a423e50d47115b9876830a8a0696d1
parent0094dde11d97a0e69b053851a87f2934ef0e00aa
Simplify fullscreen management on Haiku

* src/haiku_support.cc (class EmacsWindow, Zoom, UnZoom): Track
zoom state manually instead of guessing what the system
currently thinks it is.
(MakeFullscreen): Always unzoom first.
* src/haiku_support.h (struct haiku_zoom_event): Remove all
fields and add a single field `zoomed'.
* src/haikufns.c (haiku_create_frame, haiku_create_tip_frame):
Remove use of pending_zoom fields.
* src/haikuterm.c (haiku_read_socket): Simplify handling of zoom
events.
(haiku_fullscreen): Simplify handling of different zoom states.
* src/haikuterm.h (struct haiku_output): Remove all pending_zoom
fields since they are no longer required.
src/haiku_support.cc
src/haiku_support.h
src/haikufns.c
src/haikuterm.c
src/haikuterm.h