UI bugs hampering porting effort for shaped window

Rob cto at xten.com
Wed Oct 29 18:59:59 CST 2003


Hello All,

Apologies if I'm not posting to the correct location. I am trying to port
our X-Lite (a leading free SIP softphone) application to run under WINE as a
first trial before we obtain the expertise to do a native application.
However, I am running into some issues because our application uses a
non-standard shaped window. One of our windows developers has created a test
application that demonstrates the non-compatible issues found in hopes that
someone may be able to help resolve the issues. As of yet, we do not have
the in-house expertise to fix the issues directly within WINE.

In addition to the UI issues listed below, a fix for bug 1541 is critical.
If anyone can help resolve these issues, I'd greatly appreciate the help in
getting another application that can run under WINE, and we can have one of
our windows developers assist in validation of any fixes.

Thanks,
Rob

Bugzilla Bug 1541
   WS2_32 version of gethostbyname with NULL argument doesn't follow
specification
http://bugs.winehq.org/show_bug.cgi?id=1541

...

This application demonstrates the issues we are having which will allow
X-Lite to run under WINE. Source and binaries are included.

Find the demo application at:
http://www.xten.com/files/winetest.zip

The show stopper bugs are B1, B2, B3, B4 and B5.

Issue B5, and B7 can be worked around, so they aren't as critical.

B1, B2, B3, and B4 can be fixed by putting a title bar on the application.
(See MAKE_IT_LOOK_LIKE_A_NORMAL_APP_AT_STARTUP in winetest.cpp.)

- B1. Focus does not appear to be on the application at start-up.  We do not
      receive keyboard messages, though we do receive many other messages,
      such as mouse-clicks.  Clicking on the square labelled "focus:"
      fixes the problem, by bringing up a message box -- when the message
      box is dismissed, the application has focus.  This appears to be the
      same problem as that discussed here:
      http://bugs.winehq.org/show_bug.cgi?id=292
- B2. No task bar item.
- B3. "System" commands do not appear to be working.  Examples:
         - we do not receive WM_CLOSE when the user presses Alt+F4
         - Alt+Space does not bring up the System menu
- B4. We are always on top, until a screen-saver kicks in.  (Also can be
      fixed by simply removing WS_POPUP.)  This appears to be the same
      problem as that discussed here:
      http://bugs.winehq.org/show_bug.cgi?id=1288
- B5. The application window is supposed to have a non-rectangular shape.
      The shape is made by setting a "region" from a mask bitmap, and
calling
      SetWindowRgn.  The problem under Wine happens when converting the
      2-bit color mask to a 24-bit color mask.  The black 2-bit pixels are
      properly converted to black 24-bit pixels, but the white 2-bit pixels
      are converted to a near-black, rather than white.  The sample app
      demonstrates 2 ways of working around the problem:
      method 1: fixes the problem by using a 16-color (4 bit per color) mask
                instead of a 2-color mask.  This gets around the bug in a
                reasonable way.
      method 2: fixes the problem by using near-black (instead of white) for
                the "transparent" color.  This exploits the bug and causes
                a bad (but correct) appearance on Windows.
- B6. Copy to the clipboard doesn't work (though pasting from the clipboard
      does work).
- B7. Attempting to bring up the right-click context menu causes the app to
      hang.





More information about the wine-devel mailing list