Changeset 19067

Show
Ignore:
Timestamp:
07/19/06 10:14:33 (2 years ago)
Author:
patrick
Message:

MFT [rev 19066]: Create the empty cursor before the window is mapped. This

appears to fix an all-too-frequent crash that I saw when
trying to move an input window as soon after it opened as
I could. I think that the basic problem was a race
condition of sorts.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/branches/2.0/modules/gadgeteer/gadget/Devices/KeyboardMouseDevice/InputWindowXWin.cpp

    r18204 r19067  
    328328 
    329329   mXWindow = createWindow(DefaultRootWindow(mXDisplay), 1); 
     330   createEmptyCursor(mXDisplay, mXWindow); 
    330331 
    331332   setHints(mXWindow, const_cast<char*>(mInstName.c_str()), 
     
    337338   XRaiseWindow(mXDisplay, mXWindow); 
    338339   XClearWindow(mXDisplay, mXWindow);    // Try to clear the background 
    339  
    340    createEmptyCursor(mXDisplay, mXWindow); 
    341340 
    342341   vprDEBUG(gadgetDBG_INPUT_MGR, vprDBG_STATE_LVL)