VirtualBox

Changeset 8291 in vbox for trunk/src/VBox/Additions/x11


Ignore:
Timestamp:
Apr 22, 2008 1:37:19 PM (17 years ago)
Author:
vboxsync
Message:

Additions/x11: disable seamless mode when VBoxClient is terminated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/xclient/main.cpp

    r8155 r8291  
    113113    XGetErrorText(pDisplay, pError->error_code, errorText, sizeof(errorText));
    114114    LogRel(("VBoxClient: an X Window protocol error occurred: %s (error code %d).  Request code: %d, minor code: %d, serial number: %d\n", errorText, pError->error_code, pError->request_code, pError->minor_code, pError->serial));
     115    /** Disable seamless mode */
     116    VbglR3SeamlessSetCap(false);
    115117    VbglR3Term();
    116118    exit(1);
     
    124126{
    125127    Log(("VBoxClient: a fatal guest X Window error occurred.  This may just mean that the Window system was shut down while the client was still running.\n"));
     128    /** Disable seamless mode */
     129    VbglR3SeamlessSetCap(false);
    126130    VbglR3Term();
    127131    return gpfnOldIOErrorHandler(pDisplay);
     
    135139{
    136140    Log(("VBoxClient: terminated with signal %d\n", cSignal));
     141    /** Disable seamless mode */
     142    VbglR3SeamlessSetCap(false);
     143    VbglR3Term();
    137144    /* Our pause() call will now return and exit. */
    138145}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette