Ignore:
Timestamp:
Oct 17, 2001, 4:30:10 PM (24 years ago)
Author:
sandervl
Message:

SetFocus fix

File:
1 edited

Legend:

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

    r6981 r7095  
    1 /* $Id: window.cpp,v 1.109 2001-10-10 14:39:58 sandervl Exp $ */
     1/* $Id: window.cpp,v 1.110 2001-10-17 14:30:10 sandervl Exp $ */
    22/*
    33 * Win32 window apis for OS/2
     
    806806    }
    807807    teb->o.odin.hwndFocus = 0;
    808 ////    if(activate) {
    809 ////        SetActiveWindow(hwndTopParent);
    810 ////    }
    811808    if(!IsWindow(hwnd)) return FALSE;       //abort if window destroyed
    812809
    813     //Always activate window (3rd par) -> seems to fix activation problems
    814     return (OSLibWinSetFocus(OSLIB_HWND_DESKTOP, hwnd_O, 1)) ? lastFocus_W : 0;
     810    //NOTE: Don't always activate the window or else the z-order will be changed!!
     811    return (OSLibWinSetFocus(OSLIB_HWND_DESKTOP, hwnd_O, activate)) ? lastFocus_W : 0;
    815812}
    816813//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.