]> git.eshelyaron.com Git - emacs.git/commit
Fix race conditions when calculating Haiku frame geometry
authorPo Lu <luangruo@yahoo.com>
Wed, 18 May 2022 04:07:31 +0000 (04:07 +0000)
committerPo Lu <luangruo@yahoo.com>
Wed, 18 May 2022 04:07:31 +0000 (04:07 +0000)
commitc258528cfbc27f1f7e7604425a4c3d3dc78408bb
tree2918dd4fcfdd0330a6dee8b5ad2bf7aa81e91f4a
parent55198d179671739048701068fb1f40056d37c493
Fix race conditions when calculating Haiku frame geometry

* src/haiku_support.cc (be_lock_window, be_unlock_window): New
functions.
* src/haiku_support.h: Update prototypes.

* src/haikufns.c (frame_geometry): Lock window before asking for
its dimensions and frame.
src/haiku_support.cc
src/haiku_support.h
src/haikufns.c