- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgViewer/GraphicsWindowX11.cpp
r12925 r13041 454 454 // but this bitmask needs to be set if the MWM_FUNC_ALL bit is already set in order to toggle it off. 455 455 if (_traits.valid() && !_traits->supportsResize) wmHints.functions = wmHints.functions | MWM_FUNC_RESIZE; 456 456 457 457 } 458 458 else … … 464 464 wmHints.status = 0; 465 465 } 466 466 467 467 XChangeProperty( display, _window, atom, atom, 32, PropModeReplace, (unsigned char *)&wmHints, 5 ); 468 468 result = true; … … 495 495 XFlush(display); 496 496 XSync(display, 0); 497 497 498 498 // add usleep here to give window manager a chance to handle the request, if 499 499 // we don't add this sleep then any X11 calls right afterwards can produce … … 759 759 760 760 attributes.push_back(EGL_RENDERABLE_TYPE); attributes.push_back(OSG_EGL_OPENGL_TARGET_BIT); 761 761 762 762 attributes.push_back(EGL_NONE); 763 763 attributes.push_back(EGL_NONE); … … 916 916 } 917 917 } 918 918 919 919 _window = XCreateWindow( _display, _parent, 920 920 x, … … 953 953 setWindowDecoration(_traits->windowDecoration); 954 954 955 955 956 956 useCursor(_traits->useCursor); 957 957 … … 1207 1207 _timeOfLastCheckEvents = getEventQueue()->getTime(); 1208 1208 if (baseTime>_timeOfLastCheckEvents) baseTime = _timeOfLastCheckEvents; 1209 1209 1210 1210 1211 1211 // OSG_NOTICE<<"GraphicsWindowX11::checkEvents() : getEventQueue()->getCurrentEventState()->getGraphicsContext()="<<getEventQueue()->getCurrentEventState()->getGraphicsContext()<<std::endl;
