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@winehq.org Reporter: zenden2k@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
https://bugs.winehq.org/show_bug.cgi?id=38299
--- Comment #1 from Sergey Svistunov zenden2k@gmail.com --- It seem to be a strange Virtual box issue. Maybe is should report to them. I have removed Virtual Box guest additions and now it works as intended. Also works fine in VMware (i do not have linux on real hardware)
https://bugs.winehq.org/show_bug.cgi?id=38299
Sergey Svistunov zenden2k@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Fullscreen window is |Fullscreen window is |ignoring mouse input after |ignoring mouse input after |TrackPopupMenu() |TrackPopupMenu() in | |virtualbox
https://bugs.winehq.org/show_bug.cgi?id=38299
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #2 from winetest@luukku.com --- Can you retest with newer wine?