Fix expose events in non-double-buffered child frames on Haiku

* src/haiku_support.cc (EmacsShow): Set shown_flag to 1 only if
this view is double buffered.
(TearDownDoubleBuffering): Clear shown_flag.
This commit is contained in:
Po Lu 2022-01-01 10:24:38 +00:00
parent ab3c6c799e
commit 141a06334e

View file

@ -739,7 +739,7 @@ class EmacsWindow : public BWindow
was_shown_p = true;
}
if (this->parent)
if (this->parent && offscreen_draw_view)
shown_flag = 1;
Show ();
if (this->parent)
@ -994,6 +994,8 @@ class EmacsView : public BView
offscreen_draw_view = NULL;
delete offscreen_draw_bitmap_1;
offscreen_draw_bitmap_1 = NULL;
shown_flag = 0;
}
}