Alexandre Julliard : server: Don't attach thread input to the desktop.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Apr 12 04:52:09 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 0fab85a5b66bfe0bccfd6bbd0ece68b986e5df5f
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=0fab85a5b66bfe0bccfd6bbd0ece68b986e5df5f

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Apr 12 11:19:20 2006 +0200

server: Don't attach thread input to the desktop.

Now that the desktop can be owned by a thread we need to explicitly
check for it in the thread attach check.

---

 server/window.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/window.c b/server/window.c
index 8254793..5ceab49 100644
--- a/server/window.c
+++ b/server/window.c
@@ -426,7 +426,7 @@ static struct window *create_window( str
     }
 
     /* if parent belongs to a different thread, attach the two threads */
-    if (parent && parent->thread && parent->thread != current)
+    if (parent && parent->thread && parent->thread != current && !is_desktop_window(parent))
     {
         if (!attach_thread_input( current, parent->thread )) goto failed;
     }




More information about the wine-cvs mailing list