Commit Graph

22 Commits

Author SHA1 Message Date
akallabeth
d4f7fb081b
[warnings] fix -Wunused-function
* delete unused functions that are no longer required
* define guard functions only used while debugging
2025-02-27 19:29:46 +01:00
akallabeth
86a21d461e
[client,warnings] fix -Wunused-parameter for SDL 2025-02-13 15:54:01 +01:00
akallabeth
f124b7db40
[client,sdl] fix container size empty warnings 2025-02-10 12:39:25 +01:00
akallabeth
a0617e20ed [client,sdl] clear cache data only on new contents 2025-02-03 14:56:41 +01:00
akallabeth
9f68ae4f03 update clipboard on sdl thread 2025-02-03 14:37:10 +01:00
akallabeth
cd0752e5eb [client,sdl3] fix locking 2025-02-03 13:54:30 +01:00
akallabeth
e25d00fceb [warnings] fix -Wc++20-designator 2025-01-20 11:37:37 +01:00
Vladimir Berezniker
bd62da3ff6 Make code compatible with SDL3 3.1.8 plus 2025-01-17 18:22:56 -05:00
Armin Novak
174809b8a5
[warnings] fix some more warnings 2025-01-15 16:02:38 +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
akallabeth
ecbccecef6
[client,sdl] fix global-constructors 2024-11-22 11:00:25 +01:00
akallabeth
78acedb40e
[warnigns] fix Wshorten-64-to-32 2024-11-11 10:22:37 +01:00
akallabeth
dc76879e0b
[warnings] fix some compiler warnings
* fix compiler warnings found in a lot of places
* add missing enum type for clipboard channel
* mark deallocator for winpr image function
2024-10-30 16:12:20 +01:00
akallabeth
21668dc941
[client,sdl] fix sdl3 warnings 2024-10-16 15:21:27 +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
David Fort
57c703cf67 sdl3: various fixes with the clipboard
There were various invalid checks with function return values. The patch also
fixes a deadlock between the SDL clipboard data function and the FreeRDP
thread.
2024-09-23 15:35:11 +02:00
David Fort
688f450fc2 SDL3 client: improve the treatment of clipboard data requests
This patch adds a success flag on clipboard data requests, so that we can react
correctly in the SDL handler. I've also made some errors non fatal like if you requests
a kind of data that doesn't exist the client should not terminateit's for that.
2024-09-17 11:37:48 +02:00
akallabeth
965d231e49
[return checks] fix use of CloseHandle 2024-09-16 08:22:31 +02:00
akallabeth
94020c183c
[return checks] fix use of ResetEvent 2024-09-16 06:48:09 +02:00
akallabeth
7d67b8e204
[return checks] fix use of SetEvent 2024-09-16 06:47:58 +02:00
akallabeth
500495dc00
[warnings] fix SDL3 related issues 2024-08-29 16:03:51 +02:00
akallabeth
cc038ad89b
[client,sdl] merge SDL2 and SDL3 projects 2024-05-16 20:34:11 +02:00