Commit Graph

91 Commits

Author SHA1 Message Date
akallabeth
3551459e2c sdl-common 2025-03-06 16:22:15 +01:00
Armin Novak
8899a090bb
[client,sdl] use WIN32_GUI_FLAG 2025-03-05 11:27:42 +01:00
akallabeth
d765de8484
[warnings] eliminate dead code 2025-03-05 11:01:44 +01:00
akallabeth
764753af31
[client,sdl] implement mouse move on focus
Send current mouse position move event when focus is gained.
2025-03-04 12:42:36 +01:00
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
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
c56c80591b
[client,sdl] fix warnings 2025-02-10 09:31:37 +01:00
akallabeth
49d38c9b71
[cxx] use std::vector::emplace_back 2025-01-19 15:31:21 +01:00
akallabeth
0407bebf4b
[client,sdl] fix sdl2 multi monitor settings 2025-01-19 15:31:11 +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
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
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
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
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
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
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
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
akallabeth
8b3f807a0a
[warnings] fix format warnings 2024-10-17 20:47:29 +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
Martin Fleisz
966ddd13df
Merge pull request #10694 from akallabeth/qa-fixes
Qa fixes
2024-10-03 13:09:06 +02:00
Armin Novak
c86a78bef7
[man] add manpage for global configuration 2024-10-02 23:28:05 +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
95bafbf8d4
[client,sdl] remove unused private fields 2024-10-01 13:04:54 +02:00
akallabeth
9a82045bf2
[client,sdl] remove static from sdlDisp::handle_display_event 2024-10-01 13:04:42 +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
239440e28d
[warnings] remove or comment unused macros 2024-09-20 18:49:38 +02:00
Armin Novak
02b98e9287
[client,sdl] use constexpr instead of defines 2024-09-20 09:17:03 +02:00
akallabeth
84719a4d83
[client,sdl] fix class constructors and operators
delete unused move/copy constructors and operators
2024-09-18 23:33:50 +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