Closed
Bug 79720
Opened 24 years ago
Closed 24 years ago
[FIX]selects do not roll up when winembed is minimized
Categories
(Core :: XUL, defect)
Tracking
()
VERIFIED
FIXED
mozilla0.9.1
People
(Reporter: rods, Assigned: rods)
Details
Assignee | ||
Comment 1•24 years ago
|
||
Here is the patch:
Index: src/windows/nsWindow.cpp
===================================================================
RCS file: /cvsroot/mozilla/widget/src/windows/nsWindow.cpp,v
retrieving revision 3.333
diff -u -r3.333 nsWindow.cpp
--- nsWindow.cpp 2001/05/01 13:29:14 3.333
+++ nsWindow.cpp 2001/05/03 10:54:26
@@ -830,7 +830,7 @@
if (inMsg == WM_ACTIVATE || inMsg == WM_NCLBUTTONDOWN || inMsg ==
WM_LBUTTONDOWN ||
inMsg == WM_RBUTTONDOWN || inMsg == WM_MBUTTONDOWN ||
inMsg == WM_NCMBUTTONDOWN || inMsg == WM_NCRBUTTONDOWN || inMsg ==
WM_MOUSEACTIVATE ||
- inMsg == WM_MOUSEWHEEL || inMsg == uMSH_MOUSEWHEEL)
+ inMsg == WM_MOUSEWHEEL || inMsg == uMSH_MOUSEWHEEL || inMsg == WM_SIZE)
{
// Rollup if the event is outside the popup.
PRBool rollup = !nsWindow::EventIsInsideWindow(inMsg,
(nsWindow*)gRollupWidget);
Status: NEW → ASSIGNED
Comment 2•24 years ago
|
||
Comment 3•24 years ago
|
||
sr=hyatt
Updated•24 years ago
|
Target Milestone: --- → mozilla0.9.1
Comment 4•24 years ago
|
||
checked into the .9 branch
Assignee | ||
Comment 5•24 years ago
|
||
checked into tip - fixed
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
This patch doesn't sit well with me. I don't know why. Shouldn't WM_ACTIVATE
already handle minimizing the window, since it loses focus?
Comment 7•24 years ago
|
||
Hyatt says he conditioned his sr= (via e-mail) on testing that this didn't hose
menus. Was the patch so tested? Did the post-0.9 branch get hosed too?
/be
Comment 8•24 years ago
|
||
I had to back out the fix for this to correct today's smoketest blockers.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 9•24 years ago
|
||
You can't roll up in response to WM_SIZE. Menus are created dynamically, and
they can change their sizes during construction. Seems like another solution
will have to be found for this.
Comment 10•24 years ago
|
||
Patch causes regression. Can not change the content of a combobox. Need a
different solution.
Comment 11•24 years ago
|
||
Someone gonna back out of the 0.9 branch too?
/be
Comment 12•24 years ago
|
||
Don, Can you back this out of the 0.9 branch?
Comment 13•24 years ago
|
||
I pulled that last change out of the .9 branch.
Assignee | ||
Comment 14•24 years ago
|
||
Instead of WM_SIZE, I am using WM_ACTIVATEAPP, I think this is much safer. I
have done a lot of testing, this time with the new code actually linked in.
Index: nsWindow.cpp
===================================================================
RCS file: /cvsroot/mozilla/widget/src/windows/nsWindow.cpp,v
retrieving revision 3.338
diff -u -r3.338 nsWindow.cpp
--- nsWindow.cpp 2001/05/12 03:49:51 3.338
+++ nsWindow.cpp 2001/05/14 03:20:13
@@ -828,7 +828,7 @@
if (inMsg == WM_ACTIVATE || inMsg == WM_NCLBUTTONDOWN || inMsg == WM_LBUTTO
NDOWN ||
inMsg == WM_RBUTTONDOWN || inMsg == WM_MBUTTONDOWN ||
inMsg == WM_NCMBUTTONDOWN || inMsg == WM_NCRBUTTONDOWN || inMsg == WM_MOU
SEACTIVATE ||
- inMsg == WM_MOUSEWHEEL || inMsg == uMSH_MOUSEWHEEL)
+ inMsg == WM_MOUSEWHEEL || inMsg == uMSH_MOUSEWHEEL || inMsg == WM_ACTIVAT
EAPP)
{
// Rollup if the event is outside the popup.
PRBool rollup = !nsWindow::EventIsInsideWindow(inMsg, (nsWindow*)gRollupW
idget);
Status: REOPENED → ASSIGNED
Comment 15•24 years ago
|
||
If we're getting a WM_ACTIVATEAPP, shouldn't there also be a WM_ACTIVATE in
there, which is already handled in this code?
Assignee | ||
Updated•24 years ago
|
Summary: selects do not roll up when winembed is minimized → [FIX]selects do not roll up when winembed is minimized
Comment 16•24 years ago
|
||
I added the WM_ACTIVATEAPP change on WINNT and it doesn't cause any ill-effects.
Combobox'es and menu's behave normally. (However, I don't see the original
problem described in this bug with or without the change. For me, The combo-box
always rolls up when the winembed window is minimized.)
r=kmcclusk@netscape.com
Comment 17•24 years ago
|
||
So if you don't see the original problem, how can you confirm this patch does
anything?
I'm not trying to cause trouble here, I'm just wondering if someone can confirm
that this isn't already trapped with WM_ACTIVATE?
Assignee | ||
Comment 18•24 years ago
|
||
I think Kevin's point is that although he can't reproduce the problem on his
machine, the patch doesn't appear to cause any type of regression.
Comment 19•24 years ago
|
||
"I think Kevin's point is that although he can't reproduce the problem on his
machine, the patch doesn't appear to cause any type of regression."
Thats right.
Comment 20•24 years ago
|
||
Understood. But my question is whether the patch actually addresses the
problem, or is needed, since Kevin is unable to replicate the problem without
the patch?
No regressions is definitely a good thing, though!
Assignee | ||
Comment 21•24 years ago
|
||
I am on NT and I can see the problem and it does fix it for me.
Comment 22•24 years ago
|
||
OK, cool. I still think it's odd that WM_ACTIVATE doesn't handle it, but OK.
Do we need to worry about only doing this when being deactivated, ie. if
wParam==FALSE?
Comment 23•24 years ago
|
||
sr=hyatt, but test context menus and menus to make sure there are no
regressions. Thanks.
Assignee | ||
Comment 24•24 years ago
|
||
fixed
Status: ASSIGNED → RESOLVED
Closed: 24 years ago → 24 years ago
Resolution: --- → FIXED
Comment 25•24 years ago
|
||
verified in winembed (Moz build id: 2001060509)
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•