From 30812fc08474980580996ec5e204aec116c3765b Mon Sep 17 00:00:00 2001 From: Po Lu Date: Wed, 20 Apr 2022 11:47:10 +0000 Subject: [PATCH] Implement `below' z-group on Haiku * src/haiku_support.cc (BWindow_set_z_group): Handle Z_GROUP_BELOW by setting the B_AVOID_FRONT flag. --- src/haiku_support.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/haiku_support.cc b/src/haiku_support.cc index 18a63182162..3dc9eb88b73 100644 --- a/src/haiku_support.cc +++ b/src/haiku_support.cc @@ -4317,6 +4317,11 @@ BWindow_set_z_group (void *window, enum haiku_z_group z_group) { w->z_group = z_group; w->RecomputeFeel (); + + if (w->z_group == Z_GROUP_BELOW) + w->SetFlags (w->Flags () | B_AVOID_FRONT); + else + w->SetFlags (w->Flags () & ~B_AVOID_FRONT); } w->UnlockLooper (); -- 2.39.2