diff --git a/gio/gdbusaddress.c b/gio/gdbusaddress.c index 3901b9544..7c294f7f1 100644 --- a/gio/gdbusaddress.c +++ b/gio/gdbusaddress.c @@ -1355,6 +1355,25 @@ idle_timeout_cb (GDBusDaemon *daemon, gpointer user_data) g_main_loop_quit (loop); } +/* Satisfies STARTF_FORCEONFEEDBACK */ +static void +turn_off_the_starting_cursor (void) +{ + MSG msg; + BOOL bRet; + + PostQuitMessage (0); + + while ((bRet = GetMessage (&msg, 0, 0, 0)) != 0) + { + if (bRet == -1) + continue; + + TranslateMessage (&msg); + DispatchMessage (&msg); + } +} + __declspec(dllexport) void CALLBACK g_win32_run_session_bus (HWND hwnd, HINSTANCE hinst, char *cmdline, int nCmdShow); __declspec(dllexport) void CALLBACK @@ -1365,6 +1384,8 @@ g_win32_run_session_bus (HWND hwnd, HINSTANCE hinst, char *cmdline, int nCmdShow const char *address; GError *error = NULL; + turn_off_the_starting_cursor (); + if (g_getenv ("GDBUS_DAEMON_DEBUG") != NULL) open_console_window ();