diff --git a/gb.qt5/src/x11/main.cpp b/gb.qt5/src/x11/main.cpp index 8450134b0..c61e190c0 100644 --- a/gb.qt5/src/x11/main.cpp +++ b/gb.qt5/src/x11/main.cpp @@ -320,7 +320,8 @@ static void window_remap(QWidget *window) static void window_set_properties(QWidget *window, int which, QT_WINDOW_PROP *prop) { - X11_flush(); + //X11_flush(); + qApp->sync(); if (which & (PROP_STACKING | PROP_SKIP_TASKBAR)) { @@ -344,7 +345,7 @@ static void window_set_properties(QWidget *window, int which, QT_WINDOW_PROP *pr if (which & PROP_STICKY) X11_window_set_desktop(window->effectiveWinId(), window->isVisible(), prop->sticky ? 0xFFFFFFFF : X11_get_current_desktop()); - X11_flush(); + qApp->sync(); } static void window_set_user_time(QWidget *window, int timestamp)