]> git.eshelyaron.com Git - emacs.git/commit
Fix NS frame resizing issues (bug#40200, bug#28872)
authorAlan Third <alan@idiocy.org>
Sat, 4 Apr 2020 14:13:58 +0000 (15:13 +0100)
committerAlan Third <alan@idiocy.org>
Thu, 16 Apr 2020 18:11:05 +0000 (19:11 +0100)
commit24cb6908d70c14792c686679cb08091447b9c3b1
treee8866b8bb53e1742b3c1c6eec7d948c36dfc18cf
parent6a60701bba3d87f5d9a1730e18b6da827f41a062
Fix NS frame resizing issues (bug#40200, bug#28872)

* src/nsmenu.m (update_frame_tool_bar): Remove reference to
updateFrameSize.
* src/nsterm.h: ([EmacsView updateFrameSize]):
([EmacsView setRows:andColumns:]): Remove unused
method definitions.
(NS_PARENT_WINDOW_LEFT_POS):
(NS_PARENT_WINDOW_TOP_POS): Move to nsterm.m.
* src/nsterm.m (ns_parent_window_rect): New function.
(NS_PARENT_WINDOW_LEFT_POS):
(NS_PARENT_WINDOW_TOP_POS): Move to nsterm.m and simplify.
(ns_set_offset): Fix strange behaviours when using negative values.
(ns_set_window_size):
(ns_set_undecorated):
([EmacsView windowDidResize:]):
([EmacsView windowDidExitFullScreen]):
(ns_judge_scroll_bars): Remove references to updateFrameSize.
([EmacsView dealloc]): Unset resize notification and release buffer.
([EmacsView updateFrameSize:]): Remove function.
([EmacsView windowWillResize:toSize:]): Move some code to
viewDidResize.
([EmacsView viewDidResize]): New function.
([EmacsView initFrameFromEmacs:]): Set up resize notification and move
buffer creation until after the prerequisite objects are created.
([EmacsView toggleFullScreen:]): Set frame to the size of the
contentview, not the whole window, and remove reference to
updateFrameSize.
([EmacsView setRows:andColumns:]): Remove unused method.
([EmacsView windowDidMove:]): Tidy up.
src/nsmenu.m
src/nsterm.h
src/nsterm.m