Changeset 57195 in vbox
- Timestamp:
- Aug 5, 2015 2:23:20 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 101947
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/VBoxUtils-darwin-cocoa.mm
r52751 r57195 406 406 bool darwinIsWindowMaximized(NativeNSWindowRef pWindow) 407 407 { 408 bool fResult = [pWindow isZoomed]; 409 410 return fResult; 408 /* Mac OS X API NSWindow isZoomed returns true even for almost maximized windows, 409 * So implementing this by ourseleves by comparing visible screen-frame & window-frame: */ 410 NSRect windowFrame = [pWindow frame]; 411 NSRect screenFrame = [[NSScreen mainScreen] visibleFrame]; 412 413 return (windowFrame.origin.x == screenFrame.origin.x) && 414 (windowFrame.origin.y == screenFrame.origin.y) && 415 (windowFrame.size.width == screenFrame.size.width) && 416 (windowFrame.size.height == screenFrame.size.height); 411 417 } 412 418
Note:
See TracChangeset
for help on using the changeset viewer.