This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository x2gokdriveclient. commit e780931130bc75d7914a45265b5403a14675bda7 Author: Oleksandr Shneyder <o.shneyder@phoca-gmbh.de> Date: Fri May 26 11:03:10 2023 -0600 - repaint window in rootless mode after move/resize to avoid repaint errors on Windows. - hide normal windows with visibility == 2 from taskbar. --- client.cpp | 14 +++++++++++++- debian/changelog | 2 ++ extwin.cpp | 2 ++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/client.cpp b/client.cpp index cba4fe1..d2d1e2e 100644 --- a/client.cpp +++ b/client.cpp @@ -1392,7 +1392,8 @@ void Client::getWinUpdateBuffer() case WINDOW_TYPE_TOOLTIP: flags=Qt::ToolTip; break; - default:flags=Qt::Window ; + default: + flags=Qt::Window; } // KDRStdErr()<<"new win: "<<KDR_HEX<<extWinId; @@ -1456,6 +1457,17 @@ void Client::getWinUpdateBuffer() { win->setWindowIcon(icon); } + //hide windows with visibility==2 from taskbar + if(winType == WINDOW_TYPE_NORMAL) + { + if(visibility==2) + { + flags=Qt::SubWindow; + win->setWindowFlags(flags); + Client::KDRStdErr()<<"Window with visibility == 2, hiding from taskbar"<<KDR_ENDL; + } + } + // win->update(); } QPoint adjustedWinPos=win->kdriveToVirtualPosition(QPoint(x,y)); diff --git a/debian/changelog b/debian/changelog index b6be854..3dc52f8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -62,5 +62,7 @@ x2gokdriveclient (0.0.0.1-0x2go1) UNRELEASED; urgency=medium - add --noresize option to disable size changing of the window for user. - support for sending frames over UDP. Some improvements in detecting of unchanged regions. + - repaint window in rootless mode after move/resize to avoid repaint errors on Windows. + - hide normal windows with visibility == 2 from taskbar. -- Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Tue, 04 Jun 2019 11:10:43 +0200 diff --git a/extwin.cpp b/extwin.cpp index a529462..1836e37 100644 --- a/extwin.cpp +++ b/extwin.cpp @@ -450,6 +450,8 @@ void ExtWin::slotRestoreWin() { displayArea->show(); setWindowOpacity(1); + //try to repaint the window to avoid update errors on Windows + QTimer::singleShot(200, getDisplayArea(), SLOT(repaint())); } #endif -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2gokdriveclient.git