541 Commits

Author SHA1 Message Date
akallabeth
7f434db04a [client,sdl] use SdlContext scaling functions 2026-01-27 15:22:32 +01:00
akallabeth
c6b104cce0 [client,sdl] wrap mouse cursor move in SdlContext 2026-01-27 15:22:31 +01:00
akallabeth
2e7639d903 [client,sdl] add coordinat conversion functions
* pixel to screen mapper
* screen to pixel mapper
* local scaling add/remove for smart-sizing
2026-01-27 15:22:30 +01:00
akallabeth
02a9d61182 [client,sdl] remove unused channel function definitions 2026-01-27 15:22:28 +01:00
akallabeth
e3d3bc363c [client,sdl] add util stringify functions 2026-01-27 15:22:27 +01:00
akallabeth
7258c77838 [client,sdl] fix local scaled drawing
* Add scaling factor to drawing routines
* Update local scaling on each draw
2026-01-27 15:22:25 +01:00
akallabeth
842624f25a [client,sdl] check function return in dialogs 2026-01-27 15:22:24 +01:00
akallabeth
1ce038c12b [client,sdl] unify stringification functions 2026-01-27 15:22:23 +01:00
akallabeth
abdedab33c [client,sdl] encapsulate and unify event handling
* move event handling to SdlContext
* name functions similar
2026-01-27 15:22:22 +01:00
akallabeth
49ddfe65f9 [client,sdl] add toString methods for various types
* unify and add toString methods for types
* add missing event types
2026-01-27 15:22:21 +01:00
akallabeth
743e1a6799 [client,sdl] add new SdlWindow members
* get orientation of window on display
* get window size (in logical size)
2026-01-27 15:22:20 +01:00
akallabeth
2bbe3310ba [warnings] fix compiler and clang-tidy issues 2026-01-27 15:22:18 +01:00
akallabeth
4c15ec1b99 [client,sdl] add nodiscard to functions 2026-01-27 15:22:17 +01:00
akallabeth
845ef25997 [client,sdl] fix unused return warnings 2026-01-27 15:22:15 +01:00
akallabeth
caffbab7d4 [client,sdl] fix display channel updates
* always send updates if enabled and a monitor setting changed
* properly handle window and display updates
2026-01-27 15:22:14 +01:00
akallabeth
636590374a [client,sdl] mark functions nodiscard
* mark all SDL client functions nodiscard to emit warnings if the return
  is not properly checked
* refactor some member functions, move implementation from header to
  source
2026-01-27 15:22:13 +01:00
akallabeth
2fe15703b3 [client,sdl] split SdlContext to separate files 2026-01-27 15:22:12 +01:00
akallabeth
5f8c0a86d9 [client,sdl] encapsulate window class 2026-01-27 15:22:11 +01:00
akallabeth
f183b1d258 [client,sdl] add utils functions
* Add HighDpiScaleMode platformScaleMode(): get the platform specific
  high dpi hangling type
* Move and rename sdl exit codes to separate namespace
* mark all functions [[nodiscard]]
2026-01-27 15:22:10 +01:00
akallabeth
af48763b9a [client,sdl] simplify sdl thread startup 2026-01-27 15:22:08 +01:00
akallabeth
c42ecbd183 [client,sdl] reset pointer after memory release 2026-01-26 11:26:48 +01:00
akallabeth
7d8c61931b [c,printf] fix wlog format string to match arguments 2026-01-16 12:08:07 +01:00
akallabeth
9964f8669d [client,sdl] modernize code 2026-01-15 13:45:36 +01:00
akallabeth
90de9735d9 [client,sdl] fix monitor resolution
When using /multimon with a single monitor the monitor resolution was
not correctly calculated.
2026-01-14 16:20:36 +01:00
akallabeth
f9db76873b [client,sdl] fix compiler warnings 2026-01-13 10:27:38 +01:00
akallabeth
c1b9f1a530 [client,sdl] fix +workarea
actually apply properties if given on command line
2026-01-13 09:31:32 +01:00
Armin Novak
b035f33fdc [client,sdl] show file selection dialog
When started without arguments show a file selection dialog when
starting SDL freerdp
2026-01-07 11:28:03 +01:00
akallabeth
98deec9ec0 [client,sdl] lock primary while used 2025-12-31 15:43:30 +01:00
Armin Novak
223d589949 [client,sdl] set touch and pen hints
Prefer the touch API events from SDL.
FreeRDP can handle fallback to mouse events fine in case multitouch is
not available, but fails to map mouse events to touch events.
2025-12-17 10:58:53 +01:00
akallabeth
7973abe51c [client,sdl] rename member variables 2025-12-07 10:09:05 +01:00
akallabeth
266bf0e153 [client,sdl] position active input
When querying for credentials position the selected input field to the
first element not already containing a value.
2025-12-07 08:51:06 +01:00
Armin Novak
7ccb5994c0 [c++] replace std::lock_guard with std::scoped_lock 2025-12-03 15:10:56 +01:00
Armin Novak
81bdebdd09 [client,SDL] use freerdp_GetConfigFilePath 2025-12-03 14:21:46 +01:00
Armin Novak
f533089b98 [client,SDL] use CStringPtr to guard allocated C strings 2025-12-03 14:21:46 +01:00
Armin Novak
29f5901e25 [client,SDL] add CStringPtr type
Allows wrapping allocated C strings to automatically free them when no
longer used.
2025-12-03 14:21:40 +01:00
akallabeth
5223fd55cb [client,common] fix retry counter
The counter must start at 0 and be incremented afer use
2025-11-13 15:06:30 +01:00
akallabeth
4cafbf7944 [client,sdl] sdl2 dialog auth: remove std::move 2025-11-10 09:09:48 +01:00
akallabeth
03fc896b7a [client,sdl] fix smart-sizing
the scaling was not applied properly, revert these parts of
ac981843c9
2025-10-19 08:06:07 +02:00
akallabeth
9677931343 [core,arm] fix domain setting
While AzureAD seems to be required for many setups, some need an empty
domain (or maybe a different all together?)
So only provide a sane default and allow user override.
2025-09-29 10:17:01 +02:00
akallabeth
8377048057 Merge pull request #11889 from akallabeth/target-booting
[core,arm] add TARGET_BOOTING error code
2025-09-26 11:16:09 +02:00
akallabeth
53d63b3120 [core,arm] add TARGET_BOOTING error code
Propagate the error code for a VM still booting to client.
2025-09-26 10:13:46 +02:00
akallabeth
07c2c39972 [client,sdl] set metadata after command line parsing
This allows to apply a user provided /wm-class setting.
2025-09-26 10:11:22 +02:00
Armin Novak
c5133def8a [client] add prompt for AUTH_RDSTLS
the authentication type uses a fixed domain, so don't query it.
2025-09-24 14:01:12 +02:00
Armin Novak
45c7df6d61 [core,utils] add auth type AUTH_RDSTLS 2025-09-23 16:05:31 +02:00
Armin Novak
6cfdf9e43e [json] use WINPR_JSON_GetObjectItemCaseSensitive
Prefer usage of case sensitive functions that are faster.
2025-09-23 12:38:23 +02:00
akallabeth
8062adf83d [clients] add checks from #11804 to all clients 2025-09-16 09:28:57 +02:00
akallabeth
7417d5f77e [client,sdl] add SDL3 names to SDL_KeyModMask
Allow the names used by SDL3 to be set in the config file as well.
2025-09-15 09:11:21 +02:00
akallabeth
1a492b8a3d [client,sdl] update manpage
reflect SDL_KeyModMask changes in manpage.
2025-09-15 09:11:19 +02:00
akallabeth
eb45d6bf28 [client,sdl] explicitly handle KMOD_NONE
If KMOD_NONE is set in SDL_KeyModMask disable hotkeys
2025-09-15 09:11:16 +02:00
Armin Novak
9b9fba6709 [client,sdl] improve clipboard logging
* log requests on debug level
* log responses on debug level
2025-09-10 10:55:00 +02:00