When we are clipping (due to fullscreen), certain operations are bugged (such as creating another window on top, grabbing the window during a size-move operation, changing mouse capture, etc) so we must temporarily unclip first.
Seems unclipping it temporarily during such operation is enough to fix this.
This probably wasn't very obvious in practice because most times "fullscreen" means a single non-resizeable window with no menus and so on (e.g. fullscreen games), but that's not always the case.
--
v4: win32u: Don't clip fullscreen windows while capturing mouse pointer.
winex11: Don't clip while creating X Window.
https://gitlab.winehq.org/wine/wine/-/merge_requests/1153
`getpeername()` is currently handled in ntdll. This merge request changes ntdll to forward `getpeername()` to wineserver. The implementation utilises new `peer_addr` and `peer_addr_len` fields in wineserver's `struct sock`.
This fixes multiple `todo_wine`s in `ws2_32/tests` and allows for more accurate peer names to be provided in case the address the socket is bound to on the Unix side does not match what `bind()` was called with on the Windows side.
*This merge request was originally intended to be included in !2786 (Add support for AF_UNIX sockets) but was split into its own merge request because this is not an insignificant change.*
--
v14: server: Move getpeername() implementation from ntdll/unix.
https://gitlab.winehq.org/wine/wine/-/merge_requests/3074
Windows 10 [received support](https://devblogs.microsoft.com/commandline/af_unix-comes-to-window… for AF_UNIX sockets in Insider Build 17063. This merge request adds basic support for AF_UNIX sockets to ws2_32 and wineserver.
Of particular note is the difficulty in handling `sun_path`. Most of the functions that allow for translating Windows paths to Unix paths are not accessible from ws2_32. I considered the following options:
* Pass the Windows path to wineserver and do the conversion there.
* This is, as far as I can tell, not possible without major rearchitecting. wineserver does not have functions to translate Windows paths to Unix paths, for obvious reasons.
* Obtain the current working directory of the requesting process and temporarily change directories to there.
* This only handles relative paths and fails for absolute paths, UNC paths, etc.
* Conditionally change directories based on whether the path is relative or not.
* This is error-prone and wineserver does not have the requisite functions to do this cleanly.
I ultimately decided to pass the translated Unix path to wineserver, which changes directories to `dirname(path)`. It then provides `bind` and `connect` with `basename(path)`. This is not threadsafe, but wineserver is not (currently) multithreaded.
Abstract sockets are supported by this patch.
--
v35: ws2_32/tests: Add test for AF_UNIX sockets fix.
server: Fix getsockname() and accept() on AF_UNIX sockets.
server: Introduce error when attempting to connect() to abstract AF_UNIX sockets.
server: Allow for deletion of socket files.
ws2_32: Add support for AF_UNIX sockets.
ntdll/unix: Add support for AF_UNIX sockets to multiple functions.
ws2_32: Add afunix.h header.
https://gitlab.winehq.org/wine/wine/-/merge_requests/2786
Signed-off-by: Bernhard Kölbl <besentv(a)gmail.com>
--
v7: include: Add VoiceCommandSet runtimeclass with it's dependencies.
include: Add Windows.Phone.PhoneContract api contract.
widl: Add basic support for the [deprecated] attribute.
https://gitlab.winehq.org/wine/wine/-/merge_requests/383
Signed-off-by: Bernhard Kölbl <besentv(a)gmail.com>
--
v5: include: Add VoiceCommandSet runtimeclass with it's dependencies.
include: Add Windows.Phone.PhoneContract api contract.
widl: Add basic support for the [deprecated] attribute.
https://gitlab.winehq.org/wine/wine/-/merge_requests/383
Signed-off-by: Bernhard Kölbl <besentv(a)gmail.com>
--
v4: include: Add VoiceCommandSet runtimeclass with it's dependencies.
include: Add Windows.Phone.PhoneContract api contract.
widl: Add basic support for the [deprecated] attribute.
https://gitlab.winehq.org/wine/wine/-/merge_requests/383
This is the first part of a series implementing an asynchronous MFT wrapper around the synchronous session transforms. The idea is to use the async MFT behavior for all the session transforms.
I believe this is generally useful, and goes in the direction of support native async MFT, although there is none at the moment, and it will also improve the behavior of the session with decoder transforms. These MFT do not generate a sample for each input samples, and may require more input to be requested. Using the async MFT behavior, we would generate METransformInputNeeded events when appropriate, and the session would react to them and request more samples from upstream.
Similarly, producing output will trigger METransformOutputAvailable events, and the session can react to these events and push the samples downstream if there were requested, or queue them.
Moreover, for very large video decoding or video processing, the synchronous transform may be performing slowly, and this currently blocks the session callbacks, causing stutter in the playback. Using the async MFT, we can process samples asynchronously, in the multi threaded queue.
The complete async_transform implementation can be seen in the https://gitlab.winehq.org/rbernon/wine/-/commits/mr/mf-async-transform branch. I also have a local tree with fully working decoder MFTs, but it requires more changes elsewhere and some media source refactor.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/3139
Signed-off-by: Bernhard Kölbl <besentv(a)gmail.com>
--
v3: include: Add VoiceCommandSet runtimeclass with it's dependencies.
include: Add Windows.Phone.PhoneContract api contract.
fixup! widl: Add basic support for the [deprecated] attribute.
fixup! winedump: Add support for dumping IMPORT_OBJECT_NAME_EXPORTAS symbols.
widl: Add basic support for the [deprecated] attribute.
https://gitlab.winehq.org/wine/wine/-/merge_requests/383