This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository x2gokdriveclient. commit 4af6693d5327dd7f32493b2705c75fb49f9bbf38 Author: Oleksandr Shneyder <o.shneyder@phoca-gmbh.de> Date: Tue May 3 13:19:40 2022 -0500 rootless mode: update window on focus events. --- debian/changelog | 1 + extwin.cpp | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/debian/changelog b/debian/changelog index ac246c2..0c174af 100644 --- a/debian/changelog +++ b/debian/changelog @@ -50,5 +50,6 @@ x2gokdriveclient (0.0.0.1-0x2go1) UNRELEASED; urgency=medium - remove resizeWinFromServer code - bring rootless window on top if server requesting - rootless mode: if updated window not found, considering it as a new one. + - rootless mode: update window on focus events. -- Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Tue, 04 Jun 2019 11:10:43 +0200 diff --git a/extwin.cpp b/extwin.cpp index 1aadaa4..bfd1ffe 100644 --- a/extwin.cpp +++ b/extwin.cpp @@ -468,6 +468,9 @@ bool ExtWin::nativeEvent(const QByteArray &eventType, void *message, long *resul setHasFocus(true); client->changeWindow(this); } + //try to repaint the window to avoid update errors on Windows +// Client::KDRStdErr()<<KDR_ENDL<<time(NULL)<<" SET FOCUS UPDATE "<<KDR_ENDL; + QTimer::singleShot(200, getDisplayArea(), SLOT(repaint())); break; case WM_KILLFOCUS: slotCheckStackOrder(); @@ -481,6 +484,9 @@ bool ExtWin::nativeEvent(const QByteArray &eventType, void *message, long *resul setHasFocus(false); client->changeWindow(this); } + //try to repaint the window to avoid update errors on Windows +// Client::KDRStdErr()<<KDR_ENDL<<time(NULL)<<" KILL FOCUS UPDATE "<<KDR_ENDL; + QTimer::singleShot(200, getDisplayArea(), SLOT(repaint())); break; case WM_PAINT: if(windowType==WINDOW_TYPE_NORMAL) -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2gokdriveclient.git