Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_WindowX11.cpp
| Context not available. | |||||
| width = w_return; | width = w_return; | ||||
| height = h_return; | height = h_return; | ||||
| m_window = XCreateWindow( | m_window = XCreateWindow( | ||||
| m_display, | m_display, | ||||
| parentWindow, /* reparent against embedder */ | parentWindow, /* reparent against embedder */ | ||||
| Context not available. | |||||
| &xattributes); | &xattributes); | ||||
| XSelectInput(m_display, parentWindow, SubstructureNotifyMask); | XSelectInput(m_display, parentWindow, SubstructureNotifyMask); | ||||
| } | } | ||||
| m_bounds_tracker.setCreateBounds(left, top, left + width, top + height); | |||||
| #ifdef WITH_XDND | #ifdef WITH_XDND | ||||
| /* initialize drop target for newly created window */ | /* initialize drop target for newly created window */ | ||||
| m_dropTarget = new GHOST_DropTargetX11(this, m_system); | m_dropTarget = new GHOST_DropTargetX11(this, m_system); | ||||
| Context not available. | |||||
| getWindowBounds( | getWindowBounds( | ||||
| GHOST_Rect& bounds) const | GHOST_Rect& bounds) const | ||||
| { | { | ||||
| /* Getting the window bounds under X11 is not | |||||
| * really supported (nor should it be desired). */ | |||||
| getClientBounds(bounds); | getClientBounds(bounds); | ||||
| m_bounds_tracker.clientToWindowBounds(bounds); | |||||
| } | } | ||||
| void | void | ||||
| Context not available. | |||||
| bounds.m_r = bounds.m_l + w_return; | bounds.m_r = bounds.m_l + w_return; | ||||
| bounds.m_t = screen_y; | bounds.m_t = screen_y; | ||||
| bounds.m_b = bounds.m_t + h_return; | bounds.m_b = bounds.m_t + h_return; | ||||
| } | |||||
| void | |||||
| GHOST_WindowX11:: | |||||
| updateBoundsTracker(void) | |||||
| { | |||||
| if (getState() == GHOST_kWindowStateNormal) { | |||||
| GHOST_Rect bounds; | |||||
| getClientBounds(bounds); | |||||
| m_bounds_tracker.updateWmTransform(bounds); | |||||
| } | |||||
| } | } | ||||
| GHOST_TSuccess | GHOST_TSuccess | ||||
| Context not available. | |||||