Opened 19 years ago

Last modified 17 years ago

#505 closed bug

First click on BMenuBar will show empty MenuWindow — at Version 8

Reported by: diver Owned by: axeld
Priority: low Milestone: R1
Component: - General Version:
Keywords: Cc: kaoutsis@…
Blocked By: Blocking:
Platform: All

Description (last modified by jackburton)

First click on BMenuBar will show empty BPopUpMenu list, half second later menu items will appear.

Change History (8)

comment:1 by jackburton, 19 years ago

First click on any menubar causes a new BWindow to be created, maybe that's what is taking so much time ? By the way, On real hardware or emulated ? I definitely can see this on vmware.

comment:2 by diver, 19 years ago

It's on real hardware with supported nvidia card.

comment:3 by jackburton, 19 years ago

Summary: First click on BMenuBar will show empty BPopUpMenu listFirst click on BMenuBar will show empty MenuWindow

comment:4 by jackburton, 19 years ago

So we have to find out why it's taking so much time to create the menu window.

comment:5 by jackburton, 19 years ago

I might have found out what's happening: BMenu::AttachedToWindow() calls get_key_map(). get_key_map() calls control_input_server(). If it's the first time that application calls that method, a BMessenger is created using this constructor: BMessenger(const char *signature) (it's cached later), and that might be the reason for the slow start (and not the window creation as I said before, as the window is obviously shown on screen immediately).

comment:6 by jackburton, 19 years ago

I just tried removing that call but the problem is still there...

comment:7 by axeld, 19 years ago

Owner: changed from axeld to jackburton

comment:8 by jackburton, 18 years ago

Description: modified (diff)
Owner: changed from jackburton to axeld
Platform: All

Reassign to Axel, because the culprit seems to be windows creation + first show. Feel free to reassign it to me if you find out it's not the case.

Note: See TracTickets for help on using tickets.