Changeset 20933

Show
Ignore:
Timestamp:
11/18/07 13:19:10 (1 year ago)
Author:
patrick
Message:

Tighten up the implementation of createWindow().

Files:

Legend:

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

    r20932 r20933  
    455455                                     const unsigned int borderWidth) 
    456456{ 
    457    Window window; 
    458  
    459457   // need screen size so we can convert origin from lower-left 
    460458   const XWindowAttributes winattrs = getDisplayAttributes(); 
    461459 
    462    // create it 
    463    window = XCreateWindow(mXDisplay, parent, mX, winattrs.height - mY - mHeight, 
    464                           mWidth, mHeight, borderWidth, mVisual->depth, 
    465                           InputOutput, mVisual->visual, 
    466                           CWBackPixel | CWBorderPixel | CWColormap | CWEventMask, 
    467                           &mSWA); 
    468  
    469    return window; 
     460   // Create the window. 
     461   return XCreateWindow(mXDisplay, parent, mX, winattrs.height - mY - mHeight, 
     462                        mWidth, mHeight, borderWidth, mVisual->depth, 
     463                        InputOutput, mVisual->visual, 
     464                        CWBackPixel | CWBorderPixel | CWColormap | CWEventMask, 
     465                        &mSWA); 
    470466} 
    471467