Commit graph

374 commits

Author SHA1 Message Date
Rémi Bernon 6eac284201 win32u: Move WM_WINE_DESKTOP_RESIZED into driver internal messages range.
It is otherwise ignored and not passed to the drivers WindowMessage callback.

Fixes: b89c9c60d5
2024-06-13 21:07:54 +02:00
Rémi Bernon 8ba51a6f71 win32u: Call NtUserMapWindowPoints with per-monitor DPI from the drivers. 2024-06-10 22:47:00 +02:00
Rémi Bernon 979d36969c win32u: Pass the rect DPI to NtUserIsWindowRectFullScreen. 2024-06-06 10:40:40 +02:00
Rémi Bernon 64639c93c8 win32u: Pass desired DPI to NtUserGet(Client|Window)Rect. 2024-06-06 10:40:40 +02:00
Rémi Bernon 9afb3057af win32u: Introduce NtUserAdjustWindowRect call for AdjustWindowRect*. 2024-06-06 10:40:39 +02:00
Rémi Bernon 6b8cdda502 gdi32: Use an internal NtUser call for D3DKMTOpenAdapterFromGdiDisplayName.
Fixes a deadlock with display_device_init mutex and display_lock when
trying to open the D3DKMT adapter while holding the mutex in the caller.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56764
2024-06-05 15:58:26 +02:00
Rémi Bernon b89c9c60d5 win32u: Move desktop resize on WM_DISPLAYCHANGE out of the drivers. 2024-06-04 22:25:12 +02:00
Rémi Bernon 0a2ae3c41d win32u: Send display change messages when host display mode changes.
Similarly to when it is changed from an application call, but avoid
broadcasting WM_DISPLAYCHANGE to all windows when called from the
drivers, as we may have done it already.
2024-06-04 22:25:09 +02:00
Rémi Bernon a3b22d3bf7 win32u: Only keep DPI awareness context with window objects. 2024-05-28 20:45:11 +02:00
Rémi Bernon 37252fd505 win32u: Fix SetThreadDpiAwarenessContext. 2024-05-28 20:44:39 +02:00
Rémi Bernon dc05a4499e win32u: Pass the DPI awareness context in win_proc_params. 2024-05-28 20:44:39 +02:00
Rémi Bernon cda7027bc8 win32u: Get the thread DPI context instead of the awareness. 2024-05-28 20:44:39 +02:00
Rémi Bernon b6223da118 win32u: Return UINT from NtUserGetWindowDpiAwarenessContext. 2024-05-27 22:59:21 +02:00
Rémi Bernon bcb33fd859 win32u: Use NtUserCallOnParam for SetThreadDpiAwarenessContext.
And an internal function call when possible.
2024-05-27 22:59:21 +02:00
Rémi Bernon f7f213bdf8 win32u: Get rid of the drivers force_display_devices_refresh flag. 2024-05-27 13:11:36 +02:00
Rémi Bernon 6ee5c60d5d win32u: Fix NtUserSetProcessDpiAwarenessContext. 2024-05-24 18:42:23 +02:00
Rémi Bernon bb5f0e122f win32u: Use a custom struct hid_input for NtUserSendHardwareInput. 2024-03-05 20:50:06 +01:00
Rémi Bernon 66baee8b99 win32u: Use NtUserCallHwndParam interface for __wine_send_input. 2024-03-05 20:50:06 +01:00
Rémi Bernon c77261dd5c win32u: Introduce new NtUserSwitchDesktop syscall stub. 2024-02-28 19:51:20 +01:00
Zhiyi Zhang ca97cb8700 server: Inherit internal desktop flags when creating desktops.
Based on Rémi's idea.

CEF applications create their own desktops and so is_virtual_desktop() could incorrectly
report that virtual desktop is off if DF_WINE_VIRTUAL_DESKTOP is not inherited.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55810
2024-02-13 22:37:50 +01:00
Zhiyi Zhang 2990a4f8c3 include: Rename DF_WINE_CREATE_DESKTOP to DF_WINE_VIRTUAL_DESKTOP. 2024-02-13 22:37:50 +01:00
Alexandre Julliard a9e42169ca user32: Return result through NtCallbackReturn for the draw text callback. 2024-01-18 18:08:49 +01:00
Alexandre Julliard 85e351abaf user32: Return result through NtCallbackReturn for the DDE message callback. 2024-01-18 18:08:48 +01:00
Rémi Bernon 5f313c0fdb win32u: Move ImeToAsciiEx implementation from winex11.
Using a new WINE_IME_POST_UPDATE NtUserMessageCall call for the drivers.
2024-01-17 21:54:55 +01:00
Rémi Bernon 19ad5bd598 server: Peek wine internal driver messages regardless of filter.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55774
2023-12-13 19:13:01 +01:00
Rémi Bernon 62c6646d8f win32u: Introduce new SystrayDock driver entry points. 2023-12-01 19:08:55 +01:00
Rémi Bernon 22bfdbeb48 win32u: Introduce a new NtUserSystemTrayCall message call. 2023-12-01 19:08:54 +01:00
Rémi Bernon c36b419344 winewayland.drv: Configure win32u keyboard repeat delay and speed. 2023-11-22 20:03:04 +01:00
Alexandre Julliard 4502eb56ba configure: Use hidden visibility also when building Unix libraries. 2023-11-08 10:27:21 +01:00
Alexandre Julliard 7999f40b38 include: Use proper dllimports for win32u functions. 2023-11-03 18:05:01 +01:00
Connor McAdams 285620b177 win32u: Fix NtUserIsCurrent{Process/Thread}Window enum typo.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2023-10-10 23:15:05 +02:00
Zhiyi Zhang 109d15ab35 user32: Map WM_CHAR wparam in ASCII to Unicode in IsDialogMessageA() for CJK locales.
Fix displaying Chinese characters as "??" in some applications with Chinese locale.
2023-09-14 11:18:48 +02:00
Jacek Caban 61b80f6704 win32u: Remove no longer needed NtUserSendDriverMessage.
All messages are packed now anyway.
2023-08-02 20:03:51 +09:00
Jacek Caban f693d66086 win32u: Remove no longer needed needs_unpack from win_proc_params. 2023-08-02 20:03:51 +09:00
Jacek Caban c1a5b42cdc win32u: Remove no longer needed NtUserWinProcResult. 2023-08-02 20:03:51 +09:00
Jacek Caban 99f0d3d790 win32u: Move packed structures declaration from ntuser.h. 2023-08-01 21:50:34 +09:00
Jacek Caban 36384097c7 win32u: Pass module name before packed lparam in win_hook_params. 2023-07-17 18:11:19 +02:00
Jacek Caban e0d62e8569 user32: Always use NtCallbackReturn in User32DrawText. 2023-07-10 20:27:35 +02:00
Jacek Caban 2d7465eb60 win32u: Remove no longer needed result pointer from win_proc_params.
We may always use NtCallbackReturn now.
2023-07-10 16:24:30 +02:00
Esme Povirk 45ac4ce9c9 win32u: Implement marshaling for CB_GETCOMBOBOXINFO. 2023-07-03 22:15:42 +02:00
Rémi Bernon 25906eedd8 server: Introduce and send new WM_WINE_SETCURSOR hardware message. 2023-06-13 22:10:56 +02:00
Tatsuyuki Ishi d24dcb1ec5 win32u: Cleanup naming and log messages for QueryDisplayConfig.
Signed-off-by: Tatsuyuki Ishi <ishitatsuyuki@gmail.com>
2023-06-12 21:21:42 +02:00
Tatsuyuki Ishi c2c9112bf8 win32u: Move QueryDisplayConfig from user32.
Signed-off-by: Tatsuyuki Ishi <ishitatsuyuki@gmail.com>
2023-06-12 21:21:42 +02:00
Rémi Bernon f7d45533d1 explorer: Call user driver through a new CreateDesktop callback. 2023-05-30 13:45:43 +02:00
Jacek Caban b601e3fa97 win32u: Use syscall interface for all exports. 2023-05-29 11:37:09 +02:00
Rémi Bernon 65d0f7a756 imm32: Remove now unused members from ime_private.
And move its definition to ime.c.
2023-05-19 08:49:09 -05:00
Rémi Bernon 9b4c09d8c4 winex11: Post internal WM_IME_NOTIFY wparam on composition updates. 2023-05-18 09:09:14 -05:00
Rémi Bernon 4e92c57221 winex11: Send an internal WM_IME_NOTIFY wparam to set open status. 2023-05-18 09:09:14 -05:00
Rémi Bernon bfa19f8c7e win32u: Introduce a new ImeToAsciiEx call through NtUserMessageCall. 2023-05-12 17:50:49 +02:00
Rémi Bernon c7dc10b192 win32u: Introduce a new ImeProcessKey call through NtUserMessageCall. 2023-05-12 17:50:49 +02:00