Ignore:
Timestamp:
Sep 15, 2001, 11:16:09 AM (24 years ago)
Author:
sandervl
Message:

focus/activation changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/window.cpp

    r6397 r6706  
    1 /* $Id: window.cpp,v 1.103 2001-07-28 18:02:50 sandervl Exp $ */
     1/* $Id: window.cpp,v 1.104 2001-09-15 09:16:09 sandervl Exp $ */
    22/*
    33 * Win32 window apis for OS/2
     
    810810    }
    811811    teb->o.odin.hwndFocus = 0;
    812     if(activate) {
    813         SetActiveWindow(hwndTopParent);
    814     }
     812////    if(activate) {
     813////        SetActiveWindow(hwndTopParent);
     814////    }
    815815    if(!IsWindow(hwnd)) return FALSE;       //abort if window destroyed
    816816
    817     return (OSLibWinSetFocus(OSLIB_HWND_DESKTOP, hwnd_O, 0)) ? lastFocus_W : 0;
     817    //Always activate window (3rd par) -> seems to fix activation problems
     818    return (OSLibWinSetFocus(OSLIB_HWND_DESKTOP, hwnd_O, 1)) ? lastFocus_W : 0;
    818819}
    819820//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.