Commit e8172fc
win32u: Only send mouse input in ReleaseCapture() when a window is captured.
Fix a regression from "bb496ea8 - server: Always queue mouse messages delivered to another window."
Fix ETHER VAPOR Remaster (214570) launches to black screen when the cursor is in the game window.
The game calls ReleaseCapture() when handling WM_MOUSEMOVE. After bb496ea, WM_MOUSEMOVE is always
queued because the message window is NULL. So ReleaseCapture() ends up queuing another WM_MOUSEMOVE.
So the game ends up handling infinite WM_MOUSEMOVE messages at startup and is not able to do anything.
(cherry picked from commit 818d9a1)
CW-Bug-Id: #235311 parent 1e2448a commit e8172fc
2 files changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13112 | 13112 | | |
13113 | 13113 | | |
13114 | 13114 | | |
13115 | | - | |
13116 | 13115 | | |
13117 | 13116 | | |
13118 | 13117 | | |
| |||
13128 | 13127 | | |
13129 | 13128 | | |
13130 | 13129 | | |
13131 | | - | |
13132 | 13130 | | |
13133 | 13131 | | |
13134 | 13132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1803 | 1803 | | |
1804 | 1804 | | |
1805 | 1805 | | |
1806 | | - | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
1807 | 1810 | | |
1808 | 1811 | | |
1809 | | - | |
| 1812 | + | |
1810 | 1813 | | |
1811 | 1814 | | |
1812 | 1815 | | |
| |||
0 commit comments