]> git.eshelyaron.com Git - emacs.git/commitdiff
Implement `below' z-group on Haiku
authorPo Lu <luangruo@yahoo.com>
Wed, 20 Apr 2022 11:47:10 +0000 (11:47 +0000)
committerPo Lu <luangruo@yahoo.com>
Wed, 20 Apr 2022 11:47:27 +0000 (11:47 +0000)
* src/haiku_support.cc (BWindow_set_z_group): Handle
Z_GROUP_BELOW by setting the B_AVOID_FRONT flag.

src/haiku_support.cc

index 18a6318216287b7edb5c8640f9ea7c9bff73dbb7..3dc9eb88b737803582bb3d6773065bdeaf60bf4d 100644 (file)
@@ -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 ();