- Timestamp:
- Jun 6, 2007 12:02:34 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
r3051 r3063 440 440 441 441 #if defined (Q_WS_MAC) 442 /* 442 /* 443 443 * Let's try the simple approach first - grab the focus. 444 444 * Getting a window out of the dock (minimized or whatever it's called) … … 449 449 return S_OK; 450 450 451 ProcessSerialNumber psn = { 0, kCurrentProcess }; 451 ProcessSerialNumber psn = { 0, kCurrentProcess }; 452 452 OSErr rc = ::SetFrontProcess (&psn); 453 if (!rc) 453 if (!rc) 454 454 QApplication::postEvent (mView, new QEvent ((QEvent::Type)VBoxDefs::ShowWindowEventType)); 455 455 else … … 457 457 /* 458 458 * It failed for some reason, send the other process our PSN so it can try. 459 * (This is just a precaution should Mac OS X start imposing the same sensible 459 * (This is just a precaution should Mac OS X start imposing the same sensible 460 460 * focus stealing restrictions that other window managers implement.) 461 461 */ … … 468 468 /* Return the ID of the top-level console window. */ 469 469 *winId = (ULONG64) mView->topLevelWidget()->winId(); 470 #endif 470 #endif 471 471 472 472 return S_OK; … … 947 947 * to the default shape if necessary */ 948 948 if (mouse_absolute) 949 { 950 CMouse mouse = cconsole.GetMouse(); 951 mouse.PutMouseEventAbsolute (-1, -1, 0, 0); 949 952 captureMouse (false, false); 953 } 950 954 else 951 955 viewport()->unsetCursor(); … … 1108 1112 case VBoxDefs::ShowWindowEventType: 1109 1113 { 1110 /* 1111 * Dunno what Qt3 thinks a window that has minimized to the dock 1114 /* 1115 * Dunno what Qt3 thinks a window that has minimized to the dock 1112 1116 * should be - it is not hidden, neither is it minimized. OTOH it is 1113 * marked shown and visible, but not activated. This latter isn't of 1117 * marked shown and visible, but not activated. This latter isn't of 1114 1118 * much help though, since at this point nothing is marked activated. 1115 1119 * I might have overlooked something, but I'm buggered what if I know 1116 * what. So, I'll just always show & activate the stupid window to 1120 * what. So, I'll just always show & activate the stupid window to 1117 1121 * make it get out of the dock when the user wishes to show a VM. 1118 1122 */ … … 1121 1125 return true; 1122 1126 } 1123 #endif 1127 #endif 1124 1128 default: 1125 1129 break;
Note:
See TracChangeset
for help on using the changeset viewer.