diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ff131a1b..a59624ad8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,6 +34,7 @@ if (${EXIT_CODE} EQUAL 0) if (${ARCHITECTURE} STREQUAL "sw_64") # add compiler flags -mieee for mathmatic set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mieee") + add_definitions(-DDISABLE_SHOW_ANIMATION) endif() endif() diff --git a/frame/window/mainwindow.cpp b/frame/window/mainwindow.cpp index b019f40af..df248c9d5 100644 --- a/frame/window/mainwindow.cpp +++ b/frame/window/mainwindow.cpp @@ -304,7 +304,14 @@ void MainWindow::initComponents() void MainWindow::compositeChanged() { const bool composite = m_wmHelper->hasComposite(); + +// NOTE(justforlxz): On the sw platform, there is an unstable +// display position error, disable animation solution +#ifndef DISABLE_SHOW_ANIMATION const int duration = composite ? 300 : 0; +#else + const int duration = 0; +#endif m_sizeChangeAni->setDuration(duration); m_posChangeAni->setDuration(duration);