VirtualBox

Changeset 439 in vbox for trunk/src


Ignore:
Timestamp:
Jan 30, 2007 5:00:31 PM (18 years ago)
Author:
vboxsync
Message:

FE/Qt: Applied the fix to avoid unconditional switching to the primary display when going fullscreen.

File:
1 edited

Legend:

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

    r438 r439  
    13731373        int flags = WType_TopLevel | WStyle_Customize | WStyle_NoBorder |
    13741374                    WStyle_StaysOnTop;
    1375 
    1376                 /* test by kerschi
    1377                 int isvdesk = QApplication::desktop()->isVirtualDesktop();
    1378 
    1379                 int numscreens = QApplication::desktop()->numScreens();
    1380 
    1381                 int idxprimaryscreen = QApplication::desktop()->primaryScreen();
    1382                 int screennumber = QApplication::desktop()->screenNumber(this);
    1383                 QRect scrGeo1 = QApplication::desktop()->screenGeometry (this);
    1384 
    1385                 vboxProblem().message (this, VBoxProblemReporter::Error,
    1386             tr ("<p>vdesk: %1   numscreens: %2    idxprim: %3   screen#: %4 x:%5 y:%6 w:%7 h:%8</p>")
    1387             .arg (isvdesk,0,10)
    1388             .arg (numscreens,0,10)
    1389             .arg (idxprimaryscreen,0,10)
    1390             .arg (screennumber,0,10)
    1391             .arg (scrGeo1.x(),0,10)
    1392             .arg (scrGeo1.y(),0,10)
    1393             .arg (scrGeo1.width(),0,10)
    1394             .arg (scrGeo1.height(),0,10));
    1395                 */
    1396 
    1397 
    13981375        QRect scrGeo = QApplication::desktop()->screenGeometry (this);
    13991376        /* hide early to avoid extra flicker */
     
    14141391        }
    14151392        delete list;
    1416         /* reparet to apply new flags */
    1417 //original
    1418 //        reparent (parentWidget(), flags, QPoint (0, 0), false);
    1419 //edited by kerschi
     1393        /* reparet to apply new flags and place to the top left corner of the
     1394         * current desktop */
    14201395        reparent (parentWidget(), flags, QPoint (scrGeo.x(), scrGeo.y()), false);
    1421 
    14221396        /* adjust colors and appearance */
    14231397        erase_color = centralWidget()->eraseColor();
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