[Bug 38299] New: Fullscreen window is ignoring mouse input after TrackPopupMenu()

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Mar 27 16:21:44 CDT 2015


https://bugs.winehq.org/show_bug.cgi?id=38299

            Bug ID: 38299
           Summary: Fullscreen window is ignoring mouse input after
                    TrackPopupMenu()
           Product: Wine
           Version: 1.7.39
          Hardware: x86-64
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: -unknown
          Assignee: wine-bugs at winehq.org
          Reporter: zenden2k at gmail.com
      Distribution: ---

Created attachment 51130
  --> https://bugs.winehq.org/attachment.cgi?id=51130
Slightly modified default project from visual studio 2008

A fullscreen window is ignoring mouse input after TrackPopupMenu().
After I right click on it, the popup menu appers. After I choose an item or
click outside menu, the popup menu closes. After that, the window is not
receiving any mouse events.
After I switch to another window and back using Alt-tab, my window unfreezes.
I  have tested with wine 1.7.38 and 1.6, XFCE and KDE. Xubuntu 14.04. I tested
in VirtualBox

$ wine --version
wine-1.7.38 
$ wine fullscreentest.exe 
<no output>

// works fine (minus 1 pixel)
//hWnd = CreateWindow(szWindowClass, szTitle, WS_POPUP|WS_SYSMENU, 0, 0,
GetSystemMetrics(SM_CXSCREEN)-1, GetSystemMetrics(SM_CYSCREEN)-1, NULL, NULL,
hInstance, NULL);

// FAIL!
hWnd = CreateWindow(szWindowClass, szTitle, WS_POPUP|WS_SYSMENU, 0, 0,
GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN), NULL, NULL,
hInstance, NULL);

// FAIL! (plus 1 pixel)
hWnd = CreateWindow(szWindowClass, szTitle, WS_POPUP|WS_SYSMENU, 0, 0,
GetSystemMetrics(SM_CXSCREEN)+1, GetSystemMetrics(SM_CYSCREEN)+1, NULL, NULL,
hInstance, NULL);

LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
...
case WM_CONTEXTMENU:
  hPopupMenu = CreatePopupMenu();
  InsertMenu(hPopupMenu, 0, MF_BYPOSITION | MF_STRING, 333, "Play");
  InsertMenu(hPopupMenu, 0, MF_BYPOSITION | MF_STRING, 222, "Exit");
  SetForegroundWindow(hWnd);
  TrackPopupMenu(hPopupMenu, TPM_LEFTALIGN|TPM_VERTICAL, 0, 0, 0, hWnd, NULL);

See full code in attachment

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list