Commit Graph

4510 Commits

Author SHA1 Message Date
akallabeth
24899fa414
[client,x11] fix clipboard leak on shutdown 2024-11-11 15:26:55 +01: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
fb3a127d00
[common,cmdline] add new functions
* Add freerdp_client_print_version_ex and
  freerdp_client_print_buildconfig_ex to print version and build
  configuration along with the binary name calling it
* Use these new functions instead of the ones that only print out
  version and/or buildconfig
2024-11-04 09:06:12 +01:00
akallabeth
ecc84158b7
[client,common] include binary name in client buildconfig 2024-11-04 08:42:13 +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
dcf5a8e28c
[warnings] fix -Wswitch-default 2024-10-31 11:42:24 +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
9db7deb30b
[warnings] initialize ULARGE_INTEGER 2024-10-30 10:20:41 +01:00
akallabeth
2b95757a7a
[warnings] fix redundant casts 2024-10-29 15:49:59 +01:00
akallabeth
8ee84ff054
[client,sdl] fix empty catch 2024-10-29 15:49:57 +01:00
akallabeth
3c9a45e9d0
[client,sdl] fix move constructors
use default implementation to avoid use after move
2024-10-29 15:49:54 +01:00
akallabeth
aa954d9be9
[warnings] fix various compiler warnings 2024-10-29 15:49:43 +01:00
akallabeth
f0d0105d50
[client,common] tighten /vmconnect checks
Fixes #5300:
* abort if +/-nego is used, /vmconnect overrides these.
* only set custom port if no /port or /v:host:port is in use allowing
  overriding default port
2024-10-28 09:44:21 +01:00
Martin Fleisz
9a21b81422
Merge pull request #10465 from akallabeth/desktop-files
[client,common] add WITH_INSTALL_CLIENT_DESKTOP_FILES
2024-10-25 12:33:27 +02:00
akallabeth
c377b0ce86
[client,common] add WITH_INSTALL_CLIENT_DESKTOP_FILES
This new CMake option allows installing .desktop files and application
icons if turned on.
2024-10-25 12:11:54 +02:00
akallabeth
a3aa01214c
[resource root] unify locations
unify resource locations in case WITH_BINARY_VERSIONING is set.
2024-10-25 11:40:40 +02:00
akallabeth
7ab30a1b18
[client,common] const correct pointer array arguments 2024-10-24 11:32:08 +02:00
akallabeth
14c4cd8dc3
[client,sdl] ignore window properties if not fullscreen/multimon 2024-10-24 11:32:05 +02:00
akallabeth
1675d926d2
Merge pull request #10776 from akallabeth/packaging-tests
[cmake] split tests
2024-10-24 11:26:17 +02:00
akallabeth
de055a6765
Merge pull request #10777 from akallabeth/cmake-build-type
[cmake] enforce a supported build type
2024-10-24 09:47:47 +02:00
Armin Novak
527db6783b
[cmake] split tests
* Keep BUILD_TESTING, but only run tests compatible with API (for
  packaging)
* Add BUILD_TESTING_INTERNAL for all tests including internal function
  tests that modify API to be run on our CI
2024-10-24 09:45:44 +02: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
Armin Novak
d3f8cd3073
[client,common] fix data race 2024-10-23 11:39:29 +02:00
akallabeth
9caf38bbb6 [warnings] unify CommandLineParseCommaSeparatedValues
CommandLineParseCommaSeparatedValues does some internal hack to allow
the allocated char** to be cleaned up by free.
This enforces compiler warnings as the pointer types do not match.
Use a new free function CommandLineParserFree instead
2024-10-22 21:11:58 +02:00
akallabeth
b5f8faa7ae
[client,common] update help text for /monitors 2024-10-22 13:18:47 +02:00
akallabeth
c0a3abfc62
[warnings] duplicate include 2024-10-22 09:50:20 +02:00
akallabeth
8b3f807a0a
[warnings] fix format warnings 2024-10-17 20:47:29 +02:00
akallabeth
5353bff104
[assert] use WINPR_STATIC_ASSERT 2024-10-16 19:07:07 +02:00
akallabeth
21668dc941
[client,sdl] fix sdl3 warnings 2024-10-16 15:21:27 +02:00
akallabeth
2e73ead996
[c stdlib] replace strlen/strcpy/strcmp
Use length checking versions if possible. Also replaces the wide
character versions and TCHAR versions
2024-10-15 16:30:13 +02:00
akallabeth
7d5876bdb2
[client,sdl3] update to current API 2024-10-15 08:42:48 +02:00
Armin Novak
c3a5387187
[manpages] switch generation to pure CMake
* Ditch docbook/xmlto, use plain manpage files
* Add CMake functions to concatenate manpate sections
* Modify generate_argument_manpage helper tool to generate manpage
2024-10-09 21:41:14 +02:00
akallabeth
4c034ac36f
[client,x11] fix memory leak in clipboard 2024-10-08 11:03:24 +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
35df9e95ad sdl3: fix build with last SDL_ttf 2024-10-07 09:42:47 +02:00
akallabeth
6c8c67b385
Merge pull request #10677 from akallabeth/int-narrow
Int narrow
2024-10-03 21:17:56 +02:00
akallabeth
15141385f6
[client,x11] fix integer narrow 2024-10-03 18:59:03 +02:00
akallabeth
7037a8a846
[client,sample] fix integer narrow 2024-10-03 18:59:01 +02:00
akallabeth
6c25607c76
[client,common] fix integer narrow 2024-10-03 18:58:58 +02:00
Martin Fleisz
966ddd13df
Merge pull request #10694 from akallabeth/qa-fixes
Qa fixes
2024-10-03 13:09:06 +02:00
akallabeth
cfc37caeb8
[cmake] cleaning_configure_file
add a wrapper to automatically add generated files to clean target
2024-10-02 23:28:08 +02:00
Armin Novak
c86a78bef7
[man] add manpage for global configuration 2024-10-02 23:28:05 +02:00
akallabeth
fef9b1a012
[client,common] annotate clang-analyzer-optin.core.EnumCastOutOfRange 2024-10-01 13:05:53 +02:00
akallabeth
5e1aa072f1
[client,common] fix sign warnings 2024-10-01 13:05:48 +02:00
akallabeth
f6eb6ad4d7
[utils,string] add freerdp_extract_key_value
* Add new function freerdp_extract_key_value to extract key/value pairs
  from a string
* replace all sscanf usages with this new function
2024-10-01 13:05:34 +02:00
akallabeth
8d64d75aa2
[client,SDL] fix clang-diagnostic-global-constructors 2024-10-01 13:05:20 +02:00
akallabeth
7fdb3a68bd
[clang-tidy] annotate bugprone-suspicious-missing-comma 2024-10-01 13:05:09 +02:00