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.
This commit is contained in:
parent
00a58515b0
commit
ddc985ce08
1 changed files with 3 additions and 2 deletions
|
@ -320,7 +320,8 @@ static void window_remap(QWidget *window)
|
||||||
|
|
||||||
static void window_set_properties(QWidget *window, int which, QT_WINDOW_PROP *prop)
|
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))
|
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)
|
if (which & PROP_STICKY)
|
||||||
X11_window_set_desktop(window->effectiveWinId(), window->isVisible(), prop->sticky ? 0xFFFFFFFF : X11_get_current_desktop());
|
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)
|
static void window_set_user_time(QWidget *window, int timestamp)
|
||||||
|
|
Loading…
Reference in a new issue