user32: WM_NCACTIVATE sent by set_active_window() should never deactivate

Felix Nawothnig flexo at holycrap.org
Sat Feb 10 14:46:01 CST 2007


This fixes #7198. Problem is that GetForegroundWindow() sometimes 
returns NULL (MSDN says: "in certain circumstances, such as when a 
window is losing activation"). I didn't bother to check why this happens 
for some apps (winemine works fine for me, winecfg doesn't - I suspect 
timing issues) here as I saw no point in this check anyway:

We always deactivate the old wnd with WM_NCACTIVATE, deactivate the old 
wnd with WM_ACTIVATE and activate the new wnd with WM_ACTIVATE.

If there is anything wrong with this patch please tell me.

---
  dlls/user32/focus.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 154bcc5feb38d49756e56ae246f4d6091457ca9f.diff
Type: text/x-patch
Size: 574 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070210/7a2b0186/154bcc5feb38d49756e56ae246f4d6091457ca9f.bin


More information about the wine-patches mailing list