diff --git a/src/SFML/Window/Unix/WindowImplX11.cpp b/src/SFML/Window/Unix/WindowImplX11.cpp index b845898c..59a0fbac 100644 --- a/src/SFML/Window/Unix/WindowImplX11.cpp +++ b/src/SFML/Window/Unix/WindowImplX11.cpp @@ -586,7 +586,7 @@ m_lastInputTime (0) else { windowPosition.x = (DisplayWidth(m_display, m_screen) - static_cast(mode.width)) / 2; - windowPosition.y = (DisplayWidth(m_display, m_screen) - static_cast(mode.height)) / 2; + windowPosition.y = (DisplayHeight(m_display, m_screen) - static_cast(mode.height)) / 2; } unsigned int width = mode.width;