X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5294e30a386db20a6ad3d80b67cfbe9fb6edac9e..166bcebb8e87aefb42de52d22d567a8fa316928d:/src/unix/displayx11.cpp?ds=sidebyside diff --git a/src/unix/displayx11.cpp b/src/unix/displayx11.cpp index f45bccac1b..a51285f3b8 100644 --- a/src/unix/displayx11.cpp +++ b/src/unix/displayx11.cpp @@ -5,7 +5,7 @@ // Modified by: // Created: 12/05/02 // RCS-ID: $Id$ -// Copyright: (c) wxWindows team +// Copyright: (c) wxWidgets team // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -119,7 +119,7 @@ wxDisplay::wxDisplay(size_t index) : wxDisplayBase ( index ), m_priv( new wxDisp XineramaScreenInfo *screenarr; int numscreens; screenarr = XineramaQueryScreens(disp, &numscreens); - wxASSERT(index < numscreens); + m_priv->m_rect = wxRect(screenarr[index].x_org, screenarr[index].y_org, screenarr[index].width, screenarr[index].height); m_priv->m_depth = DefaultDepth(disp, DefaultScreen(disp));