emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 5476026119: Use kMenuWindowFeel on Haiku toolkip windows


From: Po Lu
Subject: master 5476026119: Use kMenuWindowFeel on Haiku toolkip windows
Date: Sun, 16 Jan 2022 06:07:02 -0500 (EST)

branch: master
commit 5476026119cfe35a4ff7a19f2a828152f56e0b2d
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Use kMenuWindowFeel on Haiku toolkip windows
    
    * src/haiku_support.cc (BWindow_set_tooltip_decoration): Use
    kMenuWindowFeel and set flags here.
    * src/haikufns.c (Fx_show_tip): Don't set_avoid_focus manually
    since setting tooltip decorations already does that.
---
 src/haiku_support.cc | 6 +++++-
 src/haikufns.c       | 1 -
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/haiku_support.cc b/src/haiku_support.cc
index de2c798b65..22605335c5 100644
--- a/src/haiku_support.cc
+++ b/src/haiku_support.cc
@@ -2224,7 +2224,11 @@ BWindow_set_tooltip_decoration (void *window)
   if (!w->LockLooper ())
     gui_abort ("Failed to lock window while setting ttip decoration");
   w->SetLook (B_BORDERED_WINDOW_LOOK);
-  w->SetFeel (B_FLOATING_APP_WINDOW_FEEL);
+  w->SetFeel (kMenuWindowFeel);
+  w->SetFlags (B_NOT_ZOOMABLE
+              | B_NOT_MINIMIZABLE
+              | B_AVOID_FRONT
+              | B_AVOID_FOCUS);
   w->UnlockLooper ();
 }
 
diff --git a/src/haikufns.c b/src/haikufns.c
index 6a5fdf5548..52bb13bc89 100644
--- a/src/haikufns.c
+++ b/src/haikufns.c
@@ -2001,7 +2001,6 @@ DEFUN ("x-show-tip", Fx_show_tip, Sx_show_tip, 1, 6, 0,
   BWindow_resize (FRAME_HAIKU_WINDOW (tip_f), width, height);
   haiku_set_offset (tip_f, root_x, root_y, 1);
   BWindow_set_tooltip_decoration (FRAME_HAIKU_WINDOW (tip_f));
-  BWindow_set_avoid_focus (FRAME_HAIKU_WINDOW (tip_f), true);
   BView_set_view_cursor (FRAME_HAIKU_VIEW (tip_f),
                         FRAME_OUTPUT_DATA (XFRAME (frame))->current_cursor);
   SET_FRAME_VISIBLE (tip_f, 1);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]