From ddc985ce088014407bddb6659391e41662d057eb Mon Sep 17 00:00:00 2001 From: gambas Date: Mon, 30 Aug 2021 13:24:48 +0200 Subject: [PATCH] Use 'qApp->sync()' instead of 'X11_flush()' to synchronize with the X11 server. [GB.QT5.X11] * NEW: Use 'qApp->sync()' instead of 'X11_flush()' to synchronize with the X11 server. --- gb.qt5/src/x11/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)