aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2022-01-01 10:24:38 +0000
committerPo Lu2022-01-01 10:24:38 +0000
commit141a06334ecd92286b731125589832f161f03e11 (patch)
tree376d28b6d23b54c80fb320bcc6a727f9fa48820d /src
parentab3c6c799ea6973ba8496eae3827e8fa2c5caae0 (diff)
downloademacs-141a06334ecd92286b731125589832f161f03e11.tar.gz
emacs-141a06334ecd92286b731125589832f161f03e11.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/haiku_support.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/haiku_support.cc b/src/haiku_support.cc
index 6a270d338a2..e1aaf835689 100644
--- a/src/haiku_support.cc
+++ b/src/haiku_support.cc
@@ -739,7 +739,7 @@ public:
739 was_shown_p = true; 739 was_shown_p = true;
740 } 740 }
741 741
742 if (this->parent) 742 if (this->parent && offscreen_draw_view)
743 shown_flag = 1; 743 shown_flag = 1;
744 Show (); 744 Show ();
745 if (this->parent) 745 if (this->parent)
@@ -994,6 +994,8 @@ public:
994 offscreen_draw_view = NULL; 994 offscreen_draw_view = NULL;
995 delete offscreen_draw_bitmap_1; 995 delete offscreen_draw_bitmap_1;
996 offscreen_draw_bitmap_1 = NULL; 996 offscreen_draw_bitmap_1 = NULL;
997
998 shown_flag = 0;
997 } 999 }
998 } 1000 }
999 1001