VirtualBox

Ignore:
Timestamp:
Jul 9, 2009 2:02:45 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
49842
Message:

Additions/x11/seamless: small performance improvement

Location:
trunk/src/VBox/Additions/x11/VBoxClient
Files:
2 edited

Legend:

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

    r21227 r21441  
    149149    freeWindowTree();
    150150    addClients(DefaultRootWindow(mDisplay.get()));
     151    mChanged = true;
    151152}
    152153
     
    285286    /* Start by sending information about the current window setup to the host.  We do this
    286287       here because we want to send all such information from a single thread. */
    287     mObserver->notify();
     288    if (mChanged)
     289        mObserver->notify();
     290    mChanged = false;
    288291    XNextEvent(mDisplay, &event);
    289292    switch (event.type)
     
    340343            iter->second->mapRects = rects;
    341344        }
     345        mChanged = true;
    342346    }
    343347    LogFlowThisFunc(("returning\n"));
     
    358362    {
    359363        addClientWindow(hWin);
     364        mChanged = true;
    360365    }
    361366    LogFlowThisFunc(("returning\n"));
     
    384389        iter->second->mcRects = cRects;
    385390        iter->second->mapRects = rects;
     391        mChanged = true;
    386392    }
    387393    LogFlowThisFunc(("returning\n"));
     
    402408    {
    403409        mGuestWindows.removeWindow(iter);
     410        mChanged = true;
    404411    }
    405412    LogFlowThisFunc(("returning\n"));
  • trunk/src/VBox/Additions/x11/VBoxClient/seamless-x11.h

    r21216 r21441  
    289289    /** Is seamles mode currently enabled?  */
    290290    bool mEnabled;
     291    /** Have there been changes since the last time we sent a notification? */
     292    bool mChanged;
    291293
    292294    // Private methods
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