Commit Graph

38 Commits

Author SHA1 Message Date
akallabeth
6f326ad1ef
[clinet,sdl] send local layout to server 2025-03-25 11:11:54 +01:00
akallabeth
6f66fdf28c
[client,sdl] fix assertions
On processing SDL_EVENT_WINDOW_DISPLAY_SCALE_CHANGED do not assert
functions but only their result.
2025-03-25 09:07:03 +01:00
akallabeth
cc577b2361
Merge pull request #10982 from jpy794/sdl3-hidpi
Fix sdl3-freerdp blurry scaling on wayland when scale factor > 1
2025-03-24 18:30:34 +01:00
jpy794
0b6329bdd6 enable sdl3 hidpi
fix wait create windows

enable sdl hidpi

map mouse event

fix smart sizing

dynamic resolution in hidpi

reset drawing offset when resize is done

tirgger a full redraw to sdl window after resizing

format & fix warning

sdl hidpi cursor workaround

clean up

format
2025-03-25 00:51:31 +08:00
akallabeth
1f8989c271
[client,sdl] query keyboard grab directly from settings 2025-03-24 09:38:09 +01:00
akallabeth
a59a3e25a2
[client,sdl] do not compile WinMain for mingw builds 2025-03-10 22:13:38 +01:00
akallabeth
75c675aee8
[client,sdl] #include <SDL3/SDL_main.h> 2025-03-10 15:41:07 +01:00
akallabeth
86a21d461e
[client,warnings] fix -Wunused-parameter for SDL 2025-02-13 15:54:01 +01:00
akallabeth
e4cdeefb95
[client,sdl] fix integer sign conversion 2025-01-07 21:28:21 +01:00
akallabeth
6701359cc1
[warnings] fix integer casting
* use WINPR_ASSERTING_INT_CAST where possible
* clean up client code
2024-12-19 12:45:23 +01:00
stephanebill
4f2afa8c47 spell check with codespell 2024-11-20 16:53:40 -05:00
akallabeth
78acedb40e
[warnigns] fix Wshorten-64-to-32 2024-11-11 10:22:37 +01:00
Martin Fleisz
1520d94d33
Merge pull request #10797 from akallabeth/warn-fixes
Warn fixes
2024-11-07 13:50:51 +01:00
akallabeth
b6e051f16c
[warnings] fix float-conversion 2024-10-31 11:42:26 +01:00
akallabeth
aa954d9be9
[warnings] fix various compiler warnings 2024-10-29 15:49:43 +01:00
Armin Novak
98f4a2b022
[client,various] print client specific only on help
do not print if version or other command was run
2024-10-24 09:08:06 +02:00
David Fort
d05c781cd9 sdl3 client: take in account last SDL changes
This patch uses the last changes in the SDL3 clipboard to have that clean separation
between mime type announcement and retrieving the corresponding clipboard data. With
these changes we don't have anymore that spurious notifications where we loose the
clipboard ownership, and also we don't trigger data retrieval by calling functions
like SDL_ClipboardHasText().
2024-10-07 11:48:41 +02:00
akallabeth
47c5070805
Merge pull request #10635 from akallabeth/initialize-variables
Initialize variables
2024-09-30 16:04:20 +02:00
akallabeth
0d8764263f
[client,sdl] eliminate unused variables 2024-09-24 19:45:20 +02:00
akallabeth
26003e59cc
[va_list] initialize with ={0}; 2024-09-24 11:06:18 +02:00
akallabeth
699fc70941
[client,sdl] update to current sdl3-api 2024-09-20 10:19:29 +02:00
Armin Novak
3905ef0b01
[client,sdl] split sdl_client_thread_run
the function can easily be split into three funcions covering a specific
part of the thread loop. Makes the whole thing less complex and easier
to read.
2024-09-18 13:01:46 +02:00
akallabeth
8ef4b2aefa
[client,SDL] move thread cleanup to own function
The cleanup code for the RDP thread of the SDL clients grew quite
complex. Move to a function to reduce complexity and make the main
thread more readable again.
2024-09-18 11:48:35 +02:00
akallabeth
b7601ec755
[client,SDL] remove goto usage, replace with RAII
* use std::uniqe_ptr to clean up malloced strings
* use ScopeGuard to run cleanup code whenever the function is exited
2024-09-18 11:48:35 +02:00
akallabeth
e00661d338
[warnings] fix dead store warnings 2024-09-12 13:29:46 +02:00
akallabeth
9fed64eb0d
[client,SDL] SdlEventUpdateTriggerGuard
Delete copy & move assingment operators
2024-09-11 20:48:39 +02:00
akallabeth
2a641aa834
[client,sdl3] update to new API 2024-09-10 12:46:27 +02:00
akallabeth
d93d9765b3
[client,sdl] add minimize shortcut 2024-09-10 12:28:36 +02:00
akallabeth
cbae4155fb
[client,SDL] delete unused copy & move constructors 2024-09-03 12:17:20 +02:00
akallabeth
500495dc00
[warnings] fix SDL3 related issues 2024-08-29 16:03:51 +02:00
akallabeth
49dc431045
[client,sdl] add support for /monitors argument 2024-08-23 14:00:47 +02:00
akallabeth
39e8c077d4
[client,sdl] improve VerifyCertificate message
* Use FreeRDP_CertificateCallbackPreferPEM for callbacks
* Add notBefore and notAfter dates to callback messages
2024-08-20 12:42:51 +02:00
David Fort
4e6f7fb989 [sdl3] fix build against last SDL3 2024-08-12 11:50:02 +02:00
akallabeth
e72bec8441
[client,SDL] fix thread termination order
* Wait in SDL thread until RDP thread has terminated to avoid race
  conditions during autoreconnect
* Fix exit code mappings in case the connection was cancelled
2024-07-19 09:10:32 +02:00
akallabeth
b0320d8068
[client,SDL] fix autoreconnect
retry on handle check failure, not if WaitForMultipleObjects fails
2024-07-18 15:31:24 +02:00
akallabeth
fc5ed616c7
[client,sdl] fix typo 2024-06-17 09:14:35 +02:00
akallabeth
221a442270
[client,sdl] keep hotkey state of keyboard grab
keep the keyboard grab state from:
1. +/-grab-keyboard command line as default
2. toggle this state by hotkey later on
2024-06-08 09:30:28 +02:00
akallabeth
cc038ad89b
[client,sdl] merge SDL2 and SDL3 projects 2024-05-16 20:34:11 +02:00