[PATCH] user32: send correct WM_NCACTIVATE message if invisible window gets focus

Mark Harmstone hellas at burntcomma.com
Tue Feb 24 16:00:43 CST 2015


The wParam of a WM_NCACTIVATE message specifies whether a window's titlebar is active
or inactive. When SetFocus is called on an invisible, Windows sends 1 here, while Wine
sends 0. When Wine is drawing its own decorations, this results in a bug where the
titlebar is drawn inactive on a new window where SetFocus has been called before
ShowWindow, as happens with Wine notepad and winecfg.

---
 dlls/user32/focus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-user32-send-correct-WM_NCACTIVATE-message-if-invisib.patch
Type: text/x-patch
Size: 665 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150224/9c3a5a47/attachment.bin>


More information about the wine-patches mailing list