Ignore:
Timestamp:
Jan 2, 2003, 4:21:58 PM (23 years ago)
Author:
sandervl
Message:

Deactivate window when hiding it to force PM to switch focus.

File:
1 edited

Legend:

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

    r9580 r9589  
    1 /* $Id: oslibwin.cpp,v 1.134 2003-01-01 18:46:15 sandervl Exp $ */
     1/* $Id: oslibwin.cpp,v 1.135 2003-01-02 15:21:58 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    732732   if (!(fuFlags & SWP_NOACTIVATE_W)) flags |= SWP_ACTIVATE;
    733733   if (  fuFlags & SWP_SHOWWINDOW_W)  flags |= SWP_SHOW;
    734    if (  fuFlags & SWP_HIDEWINDOW_W)  flags |= SWP_HIDE;
     734   //SvL: Must also deactivate the window when hiding it or else focus won't
     735   //     change. (NOTE: make sure this doesn't cause regressions (01-02-2003)
     736   if (  fuFlags & SWP_HIDEWINDOW_W)  flags |= SWP_HIDE|SWP_DEACTIVATE;
     737
    735738   if (  fuFlags & SWP_NOSENDCHANGING_W) flags |= SWP_NOADJUST;
    736739
Note: See TracChangeset for help on using the changeset viewer.