Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gdi32: Add stub for D3DKMTQueryAdapterInfo. #202

Open
wants to merge 713 commits into
base: experimental_8.0
Choose a base branch
from

Conversation

Etaash-mathamsetty
Copy link
Contributor

@Etaash-mathamsetty Etaash-mathamsetty commented Oct 16, 2023

Fixes rainbow 6 siege from not launching due to this missing function. backport of https://gitlab.winehq.org/wine/wine/-/merge_requests/3777. games that use DLSS3 will also call this function

… thread.

When applying a new cursor clipping rect, or to the previous foreground
thread when foreground changes, to notify it of the cursor clipping rect
being reset.

(cherry picked from commit 5ebb1ed)
Instead of synchronizing the cursor on mouse changes. The SetCursor call
should now only be made when cursor or window handle have changed.

(cherry picked from commit 9f8d9ee)
This might be the case when in virtual desktop mode for instance, where
we don't change Wine foreground window when the virtual desktop is
focused out.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55046
(cherry picked from commit 8941592)
If the focus changes between Wine windows, the wineserver logic will
decide to reset the clipping rectangle. However winex11 also needs to
support the case when focus changes to a host window, in virtual desktop
mode, and in this case the foreground window doesn't actually change.

To fix this, in virtual desktop mode, release the cursor on focus out
events, and reapply the cursor clipping rect when the virtual desktop
window is focused again.

We can use the same logic on NotifyGrab events, when the WM grabs the
keyboard, and later reapply the Wine clipping rect when we are notified
about the keyboard ungrab.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55046
(cherry picked from commit 1f90d03)
We don't need the window anymore, it was only used to send ClipCursor
notifications. This improves cursor clipping performance a lot as it
avoids re-creating a window every time.

(cherry picked from commit 272f712)
rbernon and others added 27 commits September 29, 2023 15:00
(cherry picked from commit 6946c76)

CW-Bug-Id: #21713
(cherry picked from commit 4d30ce8)

CW-Bug-Id: #21713
This reverts commit 758483d.

CW-Bug-Id: #22822
(cherry picked from commit d05ce2e)

CW-Bug-Id: #22822
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>

CW-Bug-Id: #22822
Update from Gijs Vermeulen <gijsvrm@gmail.com>

CW-Bug-Id: #22822
… has NET_WM_STATE_FULLSCREEN.

CW-Bug-Id: #20483
CW-Bug-Id: #22796
@GloriousEggroll
Copy link
Contributor

Should be noted the game still also needs this envvar set from the mesa side:
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25734

We've had an envvar set for it in proton-ge for a long time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet