[X2Go-Commits] [x2goclient] 01/03: Send empty message in x2gohelper to stop AppStarting cursor. (Fixes: #616).

git-admin at x2go.org git-admin at x2go.org
Fri Jan 23 12:57:07 CET 2015


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository x2goclient.

commit bfab25eae3555a258a99332b43a792bfbafaa592
Author: Oleksandr Shneyder <o.shneyder at phoca-gmbh.de>
Date:   Fri Jan 23 12:50:02 2015 +0100

    Send empty message in x2gohelper to stop AppStarting cursor. (Fixes: #616).
---
 debian/changelog          |    1 +
 x2gohelper/x2gohelper.cpp |    8 +++++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 13cc773..9e4d06b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ x2goclient (4.0.3.2-0x2go1) UNRELEASED; urgency=medium
   * New upstream release (4.0.3.2):
     - Reformat onmainwindow.cpp
     - Fix placement of session folders in session card column. (Fixes: #681).
+    - Send empty message in x2gohelper to stop AppStarting cursor. (Fixes: #616).
 
   [ Mike Gabriel ]
   * New upstream release (4.0.3.2):
diff --git a/x2gohelper/x2gohelper.cpp b/x2gohelper/x2gohelper.cpp
index 49749be..e3b1daa 100644
--- a/x2gohelper/x2gohelper.cpp
+++ b/x2gohelper/x2gohelper.cpp
@@ -16,7 +16,6 @@
 ***************************************************************************/
 #include <windows.h>
 #include <TlHelp32.h>
-
 void killProcess(DWORD pid)
 {
     HANDLE handle=OpenProcess(PROCESS_TERMINATE,0,pid);
@@ -81,11 +80,18 @@ int main(int argc, char* argv[])
         //error open process
         return -1;
     }
+
+    //Process empty message to stop AppStarting cursor
+    MSG message;
+    PostMessage(NULL, WM_NULL, 0, 0);
+    GetMessage(&message, NULL, 0, 0);
+
     //waiting for process to finish
     if(WaitForSingleObject(handle,INFINITE)!=WAIT_FAILED)
     {
         enumerateFromParent(pid);
     }
     CloseHandle(handle);
+
     return 0;
 }

--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git


More information about the x2go-commits mailing list