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:
parent
ab3c6c799e
commit
141a06334e
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue