Alexandre Julliard : user: Allow some Wine internal messages to act on the desktop window.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Mar 6 12:54:51 CST 2006


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Mar  6 12:37:13 2006 +0100

user: Allow some Wine internal messages to act on the desktop window.

---

 dlls/user/message.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/dlls/user/message.c b/dlls/user/message.c
index 3fc261d..8dc0b3c 100644
--- a/dlls/user/message.c
+++ b/dlls/user/message.c
@@ -1154,22 +1154,26 @@ static void reply_message( struct receiv
  */
 static LRESULT handle_internal_message( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam )
 {
-    if (hwnd == GetDesktopWindow()) return 0;
     switch(msg)
     {
     case WM_WINE_DESTROYWINDOW:
         return WIN_DestroyWindow( hwnd );
     case WM_WINE_SETWINDOWPOS:
+        if (hwnd == GetDesktopWindow()) return 0;
         return USER_Driver->pSetWindowPos( (WINDOWPOS *)lparam );
     case WM_WINE_SHOWWINDOW:
+        if (hwnd == GetDesktopWindow()) return 0;
         return ShowWindow( hwnd, wparam );
     case WM_WINE_SETPARENT:
+        if (hwnd == GetDesktopWindow()) return 0;
         return (LRESULT)SetParent( hwnd, (HWND)wparam );
     case WM_WINE_SETWINDOWLONG:
         return (LRESULT)SetWindowLongW( hwnd, wparam, lparam );
     case WM_WINE_ENABLEWINDOW:
+        if (hwnd == GetDesktopWindow()) return 0;
         return EnableWindow( hwnd, wparam );
     case WM_WINE_SETACTIVEWINDOW:
+        if (hwnd == GetDesktopWindow()) return 0;
         return (LRESULT)SetActiveWindow( (HWND)wparam );
     case WM_WINE_KEYBOARD_LL_HOOK:
         return HOOK_CallHooks( WH_KEYBOARD_LL, HC_ACTION, wparam, lparam, TRUE );




More information about the wine-cvs mailing list