Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_SystemX11.cpp
| Context not available. | |||||
| void | void | ||||
| GHOST_SystemX11:: | GHOST_SystemX11:: | ||||
| getMainDisplayDimensions( | getMainDisplayDimensions( | ||||
| GHOST_TUns32& x, GHOST_TUns32& y, | |||||
| GHOST_TUns32& width, | GHOST_TUns32& width, | ||||
| GHOST_TUns32& height) const | GHOST_TUns32& height) const | ||||
| { | { | ||||
| Context not available. | |||||
| * we would need to use Xinerama check r54370 for code that did this, | * we would need to use Xinerama check r54370 for code that did this, | ||||
| * we've since removed since its not worth the extra dep - campbell */ | * we've since removed since its not worth the extra dep - campbell */ | ||||
| getAllDisplayDimensions(width, height); | getAllDisplayDimensions(width, height); | ||||
| x = 0; | |||||
| y = 0; | |||||
| } | } | ||||
| } | } | ||||
| Context not available. | |||||
| } | } | ||||
| } | } | ||||
| /** | |||||
| * Returns the dimensions of the given display number on this system. | |||||
| * \param num The display number. Must be between 0 and getNumDisplays()-1 inclusive. | |||||
| * \return The dimension and coordinates of the display. | |||||
| */ | |||||
| void | |||||
| GHOST_SystemX11:: | |||||
| getDisplayDimensions( | |||||
| GHOST_TUns8 _X_UNUSED(num), | |||||
| GHOST_TUns32& x, GHOST_TUns32& y, | |||||
| GHOST_TUns32& width, GHOST_TUns32& height) const | |||||
| { | |||||
| getMainDisplayDimensions(x, y, width, height); | |||||
| } | |||||
| /** | /** | ||||
| * Create a new window. | * Create a new window. | ||||
| * The new window is added to the list of windows managed. | * The new window is added to the list of windows managed. | ||||
| Context not available. | |||||
| if (!m_display) return 0; | if (!m_display) return 0; | ||||
| //printf("x11: window: (%d,%d)-(%d,%d) parent:%d\n", | |||||
| // left, top, (int)(left + width), (int)(top + height), parentWindow); | |||||
| window = new GHOST_WindowX11(this, m_display, title, | window = new GHOST_WindowX11(this, m_display, title, | ||||
| left, top, width, height, | left, top, width, height, | ||||
| state, parentWindow, type, | state, parentWindow, type, | ||||
| Context not available. | |||||
| break; | break; | ||||
| case MappingNotify: | case MappingNotify: | ||||
| case ReparentNotify: | case ReparentNotify: | ||||
| window->updateBoundsTracker(); | |||||
| break; | break; | ||||
| case SelectionRequest: | case SelectionRequest: | ||||
| { | { | ||||
| Context not available. | |||||