Changeset 20930
- Timestamp:
- 11/18/07 13:06:37 (1 year ago)
- Files:
-
- juggler/trunk/modules/gadgeteer/gadget/Devices/KeyboardMouseDevice/InputAreaXWin.cpp (modified) (1 diff)
- juggler/trunk/modules/gadgeteer/gadget/Devices/KeyboardMouseDevice/InputAreaXWin.h (modified) (1 diff)
- juggler/trunk/modules/gadgeteer/gadget/Devices/KeyboardMouseDevice/InputWindowXWin.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
juggler/trunk/modules/gadgeteer/gadget/Devices/KeyboardMouseDevice/InputAreaXWin.cpp
r19827 r20930 463 463 mWidth = width; 464 464 mHeight = height; 465 } 466 467 const XWindowAttributes InputAreaXWin::getDisplayAttributes() const 468 { 469 XWindowAttributes win_attrs; 470 XGetWindowAttributes(mXDisplay, 471 RootWindow(mXDisplay, DefaultScreen(mXDisplay)), 472 &win_attrs); 473 474 return win_attrs; 465 475 } 466 476 juggler/trunk/modules/gadgeteer/gadget/Devices/KeyboardMouseDevice/InputAreaXWin.h
r19824 r20930 71 71 void unlockMouse(XEvent* ev = NULL); 72 72 void updateOriginAndSize(unsigned int width, unsigned int height); 73 74 /** 75 * Returns the X11 window attributes for the root display. 76 * 77 * @since 1.3.16 78 */ 79 const XWindowAttributes getDisplayAttributes() const; 73 80 74 81 protected: juggler/trunk/modules/gadgeteer/gadget/Devices/KeyboardMouseDevice/InputWindowXWin.cpp
r20880 r20930 461 461 462 462 // need screen size so we can convert origin from lower-left 463 XWindowAttributes winattrs; 464 XGetWindowAttributes(mXDisplay, RootWindow(mXDisplay, DefaultScreen(mXDisplay)), 465 &winattrs); 463 const XWindowAttributes winattrs = getDisplayAttributes(); 466 464 467 465 // create it
