VirtualBox

Changeset 26189 in vbox


Ignore:
Timestamp:
Feb 3, 2010 1:22:31 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: 4626: Start seamless from command line - implemented.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp

    r26079 r26189  
    47604760    /* process command line */
    47614761
     4762    bool bForceSeamless = false;
     4763
    47624764    vm_render_mode_str = RTStrDup (virtualBox()
    47634765            .GetExtraData (VBoxDefs::GUI_RenderMode).toAscii().constData());
     
    48054807            }
    48064808        }
     4809        else if (!::strcmp(arg, "-seamless") || !::strcmp(arg, "--seamless"))
     4810        {
     4811            bForceSeamless = true;
     4812        }
    48074813#ifdef VBOX_GUI_WITH_SYSTRAY
    48084814        else if (!::strcmp (arg, "-systray") || !::strcmp (arg, "--systray"))
     
    48624868        /** @todo add an else { msgbox(syntax error); exit(1); } here, pretty please... */
    48634869        i++;
     4870    }
     4871
     4872    if (bForceSeamless && !vmUuid.isEmpty())
     4873    {
     4874        mVBox.GetMachine(vmUuid).SetExtraData(VBoxDefs::GUI_Seamless, "on");
    48644875    }
    48654876
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