diff --git a/source/Platform/Unix/X11Display.cpp b/source/Platform/Unix/X11Display.cpp index f2f5289..9b54150 100644 --- a/source/Platform/Unix/X11Display.cpp +++ b/source/Platform/Unix/X11Display.cpp @@ -102,8 +102,16 @@ void* X11Display::getHandle() const void X11Display::setSize(unsigned int width, unsigned int height) { - m_size = Vector2u(width, height); + // X11 does not like if width or height is zero. + if (width == 0) { + width = 1; + } + if (height == 0) { + height = 1; + } + + m_size = Vector2u(width, height); ::XResizeWindow(m_disp, m_win, m_size.x, m_size.y); }