X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5294e30a386db20a6ad3d80b67cfbe9fb6edac9e..3a5bcc4db0851bf8cd3063917511b0b17c7f9679:/src/unix/displayx11.cpp diff --git a/src/unix/displayx11.cpp b/src/unix/displayx11.cpp index f45bccac1b..08cf56f9f0 100644 --- a/src/unix/displayx11.cpp +++ b/src/unix/displayx11.cpp @@ -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));