https://bugs.winehq.org/show_bug.cgi?id=38201
Bug ID: 38201 Summary: Newly displayed dialogs have inactive-looking decorations although are actually active Product: Wine Version: 1.7.38 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: user32 Assignee: wine-bugs@winehq.org Reporter: b7.10110111@gmail.com Distribution: ---
Created attachment 50980 --> https://bugs.winehq.org/attachment.cgi?id=50980 Screenshot of Windows (left) and Wine (right) MessageBox
If I uncheck "Allow the window manager to decorate the windows" in Graphics tab of winecfg, or just set wine to show all its windows in a virtual desktop or launch the apps like `wine explorer /desktop=a,1152x864 appname.exe`, their windows often look as inactive (gray title bar) while they are actually active. This is visible in particular in winecfg dialog, Mono/Gecko downloaders dialogs on wine prefix update, as well as with a simple program like this:
#include <windows.h> int main() { MessageBox(0,"Hello","Message",MB_OK); }
I've tested the code above in Wine and Windows XP, and in Windows it has correct active title (blue-lightBlue gradient), while in wine it has inactive title (gray-lightGray gradient).
If I make any other window active, then switch back to this one, it'll then show the correct title colors.
The attachment compares Windows' MessageBox with that of Wine, both untouched at the moment of screenshooting.