VirtualBox

Ignore:
Timestamp:
May 8, 2013 9:14:51 AM (12 years ago)
Author:
vboxsync
Message:

crOpenGL: don't notify event when there is no parent window

Location:
trunk/src/VBox/HostServices/SharedOpenGL
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserver/crservice.cpp

    r45940 r45942  
    250250    ComPtr<IFramebuffer> pFramebuffer;
    251251    LONG xo, yo;
    252     LONG64 winId = 0;
    253     ULONG monitorCount, i, w, h;
    254252
    255253    if (!g_pConsole)
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_main.c

    r45940 r45942  
    26052605        crServerVBoxCompositionDisableEnter(pMI);
    26062606
     2607        pMI->fHasParentWindow = !!cr_server.screen[pMI->screenId].winID;
     2608
    26072609        renderspuReparentWindow(pMI->spuWindow);
    26082610
    2609         if (pMI->bVisible && (pMI->fPresentMode & CR_SERVER_REDIR_F_DISPLAY))
     2611        if (pMI->bVisible && (pMI->fPresentMode & CR_SERVER_REDIR_F_DISPLAY) && pMI->fHasParentWindow)
    26102612            crVBoxServerNotifyEvent(pMI->screenId);
    26112613
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_muralfbo.c

    r45940 r45942  
    194194        renderspuSetWindowId(cr_server.screen[0].winID);
    195195
    196         if (mural->bVisible && (mural->fPresentMode & CR_SERVER_REDIR_F_DISPLAY))
     196        if (mural->bVisible && (mural->fPresentMode & CR_SERVER_REDIR_F_DISPLAY) && mural->fHasParentWindow)
    197197            crVBoxServerNotifyEvent(mural->screenId);
    198198    }
     
    351351        if (!(mural->fPresentMode & CR_SERVER_REDIR_F_DISPLAY))
    352352        {
    353             if  (mural->bVisible)
     353            if  (mural->bVisible && mural->fHasParentWindow)
    354354            {
    355355                cr_server.head_spu->dispatch_table.WindowShow(mural->spuWindow, GL_TRUE);
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_window.c

    r45940 r45942  
    808808        cr_server.head_spu->dispatch_table.WindowShow(mural->spuWindow, state);
    809809
    810         if (state)
     810        if (state && mural->fHasParentWindow)
    811811            crVBoxServerNotifyEvent(mural->screenId);
    812812    }
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