Closed Bug 64791 Opened 25 years ago Closed 25 years ago

[xlib port]menus dismiss when they shouldn't

Categories

(Core :: XUL, defect, P4)

x86
Linux
defect

Tracking

()

RESOLVED FIXED
mozilla0.9

People

(Reporter: dbaron, Assigned: dbaron)

Details

Attachments

(2 files)

In the xlib port, the menus on the main menubar at the top of the navigator window dismiss if you: * click on the menu title * wait for the menu to open * move the mouse off the menu title (i.e., down to click on an item) I've traced the problem this far back: * nsMenuFrame::HandleEvent does the wrong thing when handling the mouse exit event because the nsMenuBarFrame's mIsActive is false when it should be true * nsMenuBarFrame::mIsActive is false because there was an extra call to nsMenuBarFrame::ToggleMenuActiveState() after the call to nsMenuBarFrame::SetActive(PR_TRUE). I looked at the stack for this call once -- I think it might have had something to do with a blur event on the URL bar, but I need to look more closely.
My guess is that the nsAppShell in the xlib port is sending extra focus/blur events that other ports aren't sending.
The code corresponding to the Xlib blur event (NS_DEACTIVATE) code in widget/src/xlib/nsAppShell.cpp in the GTK port is in widget/src/gtk/nsWindow.cpp
Ken Faulkner - you seem to have worked on focus stuff judging by the comments in the code. Does this seem reasonable to you?
Apparently the folks at igelaus.com.au have lots of patches they haven't checked in yet, so I'll move this to Future on the assumption that they've probably already fixed it...
Status: NEW → ASSIGNED
Priority: -- → P4
Target Milestone: --- → Future
Apparently they don't have patches for this one...
Target Milestone: Future → mozilla0.9
Fix checked in 2001-03-09 19:45 PST.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Component: XP Toolkit/Widgets: Menus → XUL
QA Contact: jrgmorrison → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: