mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 22:05:44 +00:00
Bug 1072391 - Only minimize on double-click in draggable regions of the window. r=smichaud
This commit is contained in:
parent
763f39168c
commit
a74d353fab
@ -4852,8 +4852,9 @@ NSEvent* gLastDragMouseDownEvent = nil;
|
||||
|
||||
// Check to see if we are double-clicking in the titlebar.
|
||||
CGFloat locationInTitlebar = [[self window] frame].size.height - [theEvent locationInWindow].y;
|
||||
LayoutDeviceIntPoint pos = geckoEvent.refPoint;
|
||||
if (!defaultPrevented && [theEvent clickCount] == 2 &&
|
||||
[[self window] isMovableByWindowBackground] &&
|
||||
mGeckoChild->GetDraggableRegion().Contains(pos.x, pos.y) &&
|
||||
[self shouldMinimizeOnTitlebarDoubleClick] &&
|
||||
[[self window] isKindOfClass:[ToolbarWindow class]] &&
|
||||
(locationInTitlebar < [(ToolbarWindow*)[self window] titlebarHeight] ||
|
||||
|
Loading…
Reference in New Issue
Block a user