VirtualBox

Ignore:
Timestamp:
Aug 10, 2015 6:33:20 PM (9 years ago)
Author:
vboxsync
Message:

Additions/x11/VBoxClient: reverted r101999: Additions/x11/VBoxClient: fix problems with invisible seamless windows in OpenBox.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/seamless-x11.cpp

    r57245 r57264  
    173173    phChildren = phChildrenRaw;
    174174    for (unsigned i = 0; i < cChildren; ++i)
    175         if (!mGuestWindows.find(phChildren[i]))
    176         {
    177             addClientWindow(phChildren[i]);
    178             mChanged = true;
    179         }
     175        addClientWindow(phChildren[i]);
    180176    XFree(phChildrenRaw);
    181177    LogRelFlowFunc(("returning\n"));
     
    188184    XWindowAttributes winAttrib;
    189185    bool fAddWin = true;
    190     Window hClient = 0;
    191 
     186    Window hClient = XmuClientWindow(mDisplay, hWin);
     187
     188    if (isVirtualRoot(hClient))
     189        fAddWin = false;
    192190    if (fAddWin && !XGetWindowAttributes(mDisplay, hWin, &winAttrib))
    193191    {
     
    197195    if (fAddWin && (winAttrib.map_state == IsUnmapped))
    198196        fAddWin = false;
    199     if (fAddWin)
    200     {
    201         hClient = XmuClientWindow(mDisplay, hWin);
    202         if (isVirtualRoot(hClient))
    203             fAddWin = false;
    204     }
    205197    XSizeHints dummyHints;
    206198    long dummyLong;
     
    312304    mChanged = false;
    313305    XNextEvent(mDisplay, &event);
    314     addClients(DefaultRootWindow(mDisplay));
    315306    switch (event.type)
    316307    {
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