VirtualBox

Ignore:
Timestamp:
Jan 28, 2016 11:05:54 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
105283
Message:

bugref:8087: Additions/x11: support non-root X server: fix r104816: we were no longer passing through information about visible window regions when no regions were visible at all. This broke switching to a virtual terminal while Compiz was in use, as it prevented the Compiz window from being hidden.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/crOpenGL/stub.c

    r59193 r59505  
    525525        pWindow->cVisibleRegions = cRects;
    526526
    527         if (cRects == 0)
    528             return GL_TRUE;
    529 
    530         pGLRects = crAlloc(4*cRects*sizeof(GLint));
     527        pGLRects = crAlloc(cRects ? 4*cRects*sizeof(GLint) : 4*sizeof(GLint));
    531528        if (!pGLRects)
    532529        {
Note: See TracChangeset for help on using the changeset viewer.

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