~ubuntu-branches/ubuntu/vivid/virtualbox-ose/vivid

« back to all changes in this revision

Viewing changes to src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2010-03-11 17:16:37 UTC
  • mfrom: (0.3.4 upstream) (0.4.8 sid)
  • Revision ID: james.westby@ubuntu.com-20100311171637-43z64ia3ccpj8vqn
Tags: 3.1.4-dfsg-2ubuntu1
* Merge from Debian unstable (LP: #528561), remaining changes:
  - VirtualBox should go in Accessories, not in System tools (LP: #288590)
    - debian/virtualbox-ose-qt.files/virtualbox-ose.desktop
  - Add Apport hook
    - debian/virtualbox-ose.files/source_virtualbox-ose.py
    - debian/virtualbox-ose.install
  - Add Launchpad integration
    - debian/control
    - debian/lpi-bug.xpm
    - debian/patches/u02-lp-integration.dpatch
  - Replace *-source packages with transitional packages for *-dkms
* Fix crash in vboxvideo_drm with kernel 2.6.33 / backported drm code
  (LP: #535297)
* Add a list of linux-headers packages to the apport hook
* Update debian/patches/u02-lp-integration.dpatch with a
  DEP-3 compliant header
* Add ${misc:Depends} to virtualbox-ose-source and virtualbox-ose-guest-source
  Depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
1229
1229
#endif
1230
1230
}
1231
1231
 
 
1232
void VBoxConsoleWnd::onDisplayResize (ulong aHeight, ulong aWidth)
 
1233
{
 
1234
    if (mIsSeamless && QApplication::desktop()->availableGeometry (this).size() != QSize (aHeight, aWidth))
 
1235
    {
 
1236
        mVmSeamlessAction->setChecked (false);
 
1237
        /* should be cleared already, but just in case */
 
1238
        if (mIsSeamless)
 
1239
            toggleFullscreenMode (false, true);
 
1240
    }
 
1241
}
 
1242
 
 
1243
 
1232
1244
bool VBoxConsoleWnd::event (QEvent *aEvent)
1233
1245
{
1234
1246
    switch (aEvent->type())
1447
1459
                        if (console.isOk())
1448
1460
                        {
1449
1461
                            /* Show the power down progress dialog */
1450
 
                            vboxProblem().showModalProgressDialog (progress, machine.GetName(), this, 0);
 
1462
                            vboxProblem().showModalProgressDialog (progress, machine.GetName(), this);
1451
1463
                            if (progress.GetResultCode() != 0)
1452
1464
                                vboxProblem().cannotStopMachine (progress);
1453
1465
                            else
2790
2802
    }
2791
2803
    mConsole->setMouseCoalescingEnabled (true);
2792
2804
#endif
 
2805
 
 
2806
#ifdef Q_WS_X11
 
2807
    if (vboxGlobal().isKWinManaged() && !mIsSeamless && !mIsFullscreen)
 
2808
    {
 
2809
        /* Workaround for a KWin bug to let console window to exit
 
2810
         * seamless mode correctly. */
 
2811
        setWindowFlags(Qt::Window);
 
2812
        setVisible(true);
 
2813
    }
 
2814
#endif
2793
2815
}
2794
2816
 
2795
2817
void VBoxConsoleWnd::mtExitMode()
3493
3515
    if (wasHidden)
3494
3516
        hide();
3495
3517
#endif
 
3518
 
3496
3519
    return true;
3497
3520
}
3498
3521