]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix expose events in non-double-buffered child frames on Haiku
authorPo Lu <luangruo@yahoo.com>
Sat, 1 Jan 2022 10:24:38 +0000 (10:24 +0000)
committerPo Lu <luangruo@yahoo.com>
Sat, 1 Jan 2022 10:24:38 +0000 (10:24 +0000)
* src/haiku_support.cc (EmacsShow): Set shown_flag to 1 only if
this view is double buffered.
(TearDownDoubleBuffering): Clear shown_flag.

src/haiku_support.cc

index 6a270d338a26cddfc246bd700fe61f713952ff6f..e1aaf8356893319415ed57d0f39771d84da0a617 100644 (file)
@@ -739,7 +739,7 @@ public:
        was_shown_p = true;
       }
 
-    if (this->parent)
+    if (this->parent && offscreen_draw_view)
       shown_flag = 1;
     Show ();
     if (this->parent)
@@ -994,6 +994,8 @@ public:
        offscreen_draw_view = NULL;
        delete offscreen_draw_bitmap_1;
        offscreen_draw_bitmap_1 = NULL;
+
+       shown_flag = 0;
       }
    }