Commit Graph

345 Commits

Author SHA1 Message Date
akallabeth
4e111874de [client,sdl] mark SDL2 as deprecated.
SDL2 client is a dead end due to lacking API (clipboard support, ...) so
mark the SDL2 client deprecated and point out there is a SDL3 version
available
2025-02-21 09:17:16 +01:00
akallabeth
36d29e58af [client,sdl] fix keyboard grab
* on grab key toggle state
* only update grab state in sdlInput::keyboard_grab
2025-02-17 05:03:37 +01:00
akallabeth
86a21d461e [client,warnings] fix -Wunused-parameter for SDL 2025-02-13 15:54:01 +01:00
akallabeth
d34b33b979 [client,sdl] initialize member 2025-02-13 13:30:32 +01:00
akallabeth
a24ffe957c [cmake] make C and C++ standards configurable
use cache variables to allow overriding them from command line
2025-02-13 13:30:06 +01:00
akallabeth
6603154ccf [client,sdl] fix debug log message 2025-02-11 13:35:29 +01:00
akallabeth
0ae7c4b52d [cmake] refactor configuration
* Split common stuff to reusable files
* Disable INTERPROCEDURAL_OPTIMIZATION for SDL2/3 resource targets
2025-02-11 11:33:34 +01:00
akallabeth
4013b3132b [clang,tidy] fix sign warnings 2025-02-10 13:11:16 +01:00
akallabeth
f124b7db40 [client,sdl] fix container size empty warnings 2025-02-10 12:39:25 +01:00
akallabeth
c56c80591b [client,sdl] fix warnings 2025-02-10 09:31:37 +01:00
akallabeth
44f5b6c409 [warnings] fix various clang warnings 2025-02-04 11:22:00 +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
c5cde819e0 Merge pull request #11095 from akallabeth/multi-monitor-fix
Multi monitor fix
2025-01-22 20:41:25 +01:00
akallabeth
e25d00fceb [warnings] fix -Wc++20-designator 2025-01-20 11:37:37 +01:00
akallabeth
49d38c9b71 [cxx] use std::vector::emplace_back 2025-01-19 15:31:21 +01:00
akallabeth
2ecee5281e [client,sdl] fix sdl3 multi monitor setting 2025-01-19 15:31:18 +01:00
akallabeth
0407bebf4b [client,sdl] fix sdl2 multi monitor settings 2025-01-19 15:31:11 +01:00
Vladimir Berezniker
0757ad426e Make credential dialog work with SDL3 2025-01-18 17:24:34 -05: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
316ad777dc [client,sdl] move instead of copy 2025-01-13 10:18:27 +01:00
akallabeth
e4cdeefb95 [client,sdl] fix integer sign conversion 2025-01-07 21:28:21 +01:00
akallabeth
2d95ed6929 Merge pull request #11002 from akallabeth/client-implicit-fix
[warnings] fix integer casting
2024-12-30 23:10:41 +01:00
akallabeth
313c8b7ed3 [client,sdl2] only build if sdl2 >= 2.0.20 found 2024-12-19 13:00:46 +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
a8b05717bf [cmake] set SYSTEM for external includes
* add winpr_system_includ_directory_add macro for WinPR related external
  include directories
* set target property SYSTEM for SDL related targets
2024-12-18 20:41:59 +01:00
akallabeth
375e28f5cb [client,sdl] use keyboard_layout_remap*
use keyboard layout remap functions from core library
2024-12-17 13:23:05 +01:00
akallabeth
4c7aa61cda [client,sdl] use auto for c++ variables 2024-12-10 15:15:37 +01:00
akallabeth
aac83e4449 [client,sdl] check rdpSettings and wellknown for NULL 2024-12-10 15:12:43 +01:00
akallabeth
f92984b234 [client,aad] use configurable redirection url
Create the redirection URL for AAD auth from the endpoint configuration.
2024-12-10 15:12:36 +01:00
akallabeth
b2756842b2 [core,aad] fetch wellknown before GetAccessToken
All of the URL we need for AAD authentication are dependent on a tenantid.
Fetch the wellknown file for the desired tenantid from
https://login.microsoftonline.com/{tenantid}/v2.0/.well-known/openid-configuration
and parse as JSON to have them available later on.
2024-12-10 15:12:30 +01:00
akallabeth
d780a0705c [client,SDL] fix resource template file 2024-12-08 21:39:28 +01:00
akallabeth
344841714c Merge pull request #10844 from akallabeth/cmake-mulitconfig
Cmake multiconfig
2024-12-07 17:43:05 +01:00
akallabeth
83f2f21ad3 [warnigns] fix lots of bugprone warnings
* update-settings-tests: properly cast types in getter/setter
* wtypes: fix PHANDLE definition
* wStream: fix INT64 write function warnings
* Simplify HANDLE copy in channels, just assign after proper cast
2024-12-06 09:15:48 +01:00
akallabeth
89bda0f452 [client,sdl] add warning for SDL2 lacking clipboard 2024-12-06 08:38:10 +01:00
akallabeth
ba8fd2ada5 [cmake] force configuration options
limit multiconfiguration options to supported types
2024-12-05 09:36:23 +01:00
akallabeth
faae38120c [cmake,format] reformat all cmake files 2024-11-27 20:41:48 +01:00
akallabeth
79bbb95884 [client,sdl] use std::min 2024-11-22 11:00:27 +01:00
akallabeth
ecbccecef6 [client,sdl] fix global-constructors 2024-11-22 11:00:25 +01:00
akallabeth
b5f95e0f87 [codespell] fix spelling mistakes 2024-11-21 11:28:06 +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
Martin Fleisz
c7486fc47b Merge pull request #10801 from akallabeth/cleanups
Cleanups
2024-11-07 13:03:36 +01:00
akallabeth
f1877d15d4 [client,sdl] fix sdl3 SDL_GetDisplayBounds checks
Fix #10813, return value changed to bool, so fix checks meant for SDL2
2024-11-03 21:21:05 +01:00
akallabeth
b6e051f16c [warnings] fix float-conversion 2024-10-31 11:42:26 +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
2b95757a7a [warnings] fix redundant casts 2024-10-29 15:49:59 +01:00