Changeset 28148 in vbox
- Timestamp:
- Apr 9, 2010 3:41:14 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 59879
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
r27839 r28148 2284 2284 /* We have to handle XFocusOut right here as this event is not passed 2285 2285 * to VBoxConsoleView::event(). Handling this event is important for 2286 * releasing the keyboard before the screen saver gets active. */ 2286 * releasing the keyboard before the screen saver gets active. 2287 * 2288 * See public ticket #3894: Apparently this makes problems with newer 2289 * versions of Qt and this hack is probably not necessary anymore. 2290 * So disable it for Qt >= 4.5.0. */ 2287 2291 case XFocusOut: 2288 2292 case XFocusIn: 2289 2293 if (isRunning()) 2290 focusEvent (event->type == XFocusIn); 2294 { 2295 if (VBoxGlobal::qtRTVersion() < ((4 << 16) | (5 << 8) | 0)) 2296 focusEvent (event->type == XFocusIn); 2297 } 2291 2298 return false; 2292 2299 case XKeyPress: -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r27993 r28148 2196 2196 /* We have to handle XFocusOut right here as this event is not passed 2197 2197 * to UIMachineView::event(). Handling this event is important for 2198 * releasing the keyboard before the screen saver gets active. */ 2198 * releasing the keyboard before the screen saver gets active. 2199 * 2200 * See public ticket #3894: Apparently this makes problems with newer 2201 * versions of Qt and this hack is probably not necessary anymore. 2202 * So disable it for Qt >= 4.5.0. */ 2199 2203 case XFocusOut: 2200 2204 case XFocusIn: 2201 2205 if (uisession()->isRunning()) 2202 focusEvent(pEvent->type == XFocusIn); 2206 { 2207 if (VBoxGlobal::qtRTVersion() < ((4 << 16) | (5 << 8) | 0)) 2208 focusEvent (pEvent->type == XFocusIn); 2209 } 2203 2210 return false; 2204 2211 case XKeyPress:
Note:
See TracChangeset
for help on using the changeset viewer.