Closed Bug 34741 Opened 25 years ago Closed 25 years ago

Should be able to command-drag background windows when a dialog is up

Categories

(Core :: XUL, defect, P4)

PowerPC
Mac System 8.5
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: sfraser_bugs, Assigned: sfraser_bugs)

Details

(Keywords: polish, Whiteboard: [nsbeta3+][p:4]fix in hand)

It should be possible to command-drag background windows when a dialog is up. The dialog event handler seems to be blocking more events than it should right now.
Status: NEW → ASSIGNED
Target Milestone: --- → M18
mass-moving all bugs to m21 that are not dofood+, or nsbeta2+
Target Milestone: M18 → M21
Target Milestone: M21 → Future
Here's the fix: Index: mozilla/widget/src/mac/nsWindow.cpp =================================================================== RCS file: /cvsroot/mozilla/widget/src/mac/nsWindow.cpp,v retrieving revision 1.159 diff -r1.159 nsWindow.cpp 402,403c402,403 < WindowPtr window = (WindowPtr) GetNativeData(NS_NATIVE_DISPLAY), < rollupWindow = gRollupWidget ? (WindowPtr) gRollupWidget-> GetNativeData(NS_NATIVE_DISPLAY) : 0; --- > WindowPtr window = (WindowPtr) GetNativeData(NS_NATIVE_DISPLAY); > WindowPtr rollupWindow = gRollupWidget ? (WindowPtr) gRollupWidget->GetNativeData(NS_NATIVE_DISPLAY) : nsnull; 404a405 > 406c407 < bool inWindow = eventWindow && (eventWindow == window || eventWindow == rollupWindow); --- > PRBool inWindow = eventWindow && (eventWindow == window || eventWindow == rollupWindow); 418,420c419,422 < if ( inWindow && < ( where == inContent || where == inDrag || where == inGrow || < where == inGoAway || where == inZoomIn || where == inZoomOut )) --- > if (inWindow) > { > if ( where == inContent || where == inDrag || where == inGrow || > where == inGoAway || where == inZoomIn || where == inZoomOut ) 421a424,437 > } > else // we're in another window. > { > // let's handle dragging of background windows here > if (eventWindow && (where == inDrag) && (theEvent->modifiers & cmdKey)) > { > Rect screenRect; > ::GetRegionBounds(::GetGrayRgn(), &screenRect); > ::DragWindow(eventWindow, theEvent->where, &screenRect); > } > > *aForWindow = PR_FALSE; > } >
Assignee: danm → sfraser
Status: ASSIGNED → NEW
Whiteboard: fix in hand
Target Milestone: Future → M18
setting to nsbeta3+ - get the fix in
Priority: P3 → P4
Whiteboard: fix in hand → [nsbeta3+][p:4]fix in hand
Fix checked in.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Ooops, closed the wrong bug. This is yet to be reviewed and checked in. danm, can you review the patch?
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Fix checked in.
Status: REOPENED → RESOLVED
Closed: 25 years ago25 years ago
Resolution: --- → FIXED
I verified this (build 2000091304m18). Can command drag backgrnd windows with a dialog up.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.