There will be no such logic to find out if a windows is the "main". The concept doesn't exist in the Windows API, and thus trying to add such a concept will likely cause all sorts of problems.
If a program has such an internal concept, great! But Wine nor the X desktop will know this, since there simply isn't any reliable mechanism to determine this. You could add per-application hacks, but 1. that's not the goal of the Wine project and 2. this would be an extreme amount of work (years) for very little end-user benefit, while also risking breaking applications.
-- Kirn Gill II Mobile (SMS only): +1 813-330-8354 <+18133308354> VoIP: +1 813-704-0420 BBM: 7B963E04 Email: segin2005@gmail.com LinkedIn: http://www.linkedin.com/pub/kirn-gill/32/49a/9a6
On Mon, Oct 10, 2016 at 1:20 PM, A B dianaxxyyzz@gmail.com wrote:
Thinking from wine perspective , what will be the logic to find out if a hwnd is for the main window of a program ?