Subject: 24.3.50; Tooltips got hidden by the dock on OSX
From: Darren Hoo <[email-masked]>
To: [email-masked]
Date: Tue, 19 Mar 2013 18:29:09 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

This is just a minor nuisance.

put mouse over the mode line, when the tooltip window
pops up, it is hidden by the dock sometimes

I think the tooltip window should be drawn at least at level
NSPopUpMenuWindowLevel so it can be shown over the
dock.

diff --git a/src/nsmenu.m b/src/nsmenu.m
index 22ff4dd..e026b49 100644
--- a/src/nsmenu.m
+++ b/src/nsmenu.m
@@ -1300,6 +1300,7 @@ update_frame_tool_bar (FRAME_PTR f)
   wr.size = [textField frame].size;

   [win setFrame: wr display: YES];
+  [win setLevel: NSPopUpMenuWindowLevel];
   [win orderFront: self];
   [win display];
   timer = [NSTimer scheduledTimerWithTimeInterval: (float)seconds target: self