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
akallabeth
485ebe03bf
[*printf] cast return to void
2024-10-01 13:04:57 +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
1cd0d0ab6e
[client,common] use uintptr_t instad of UINT_PTR
2024-10-01 13:04:40 +02:00
akallabeth
a23d45a419
[client,common] make time a 64bit signed integer
2024-10-01 13:04:37 +02:00
akallabeth
47c5070805
Merge pull request #10635 from akallabeth/initialize-variables
...
Initialize variables
2024-09-30 16:04:20 +02:00
akallabeth
508238711c
Merge pull request #10676 from akallabeth/cmake-file-to-hex
...
Cmake file to hex
2024-09-30 15:58:18 +02:00
akallabeth
ce30f80d2c
[client,common] disable clang-tidy for function
...
change_lock moves ownership of allocated CliprdrLocalStream to
file->local_streams. Do not complain about possible memory leak (false
positive)
2024-09-30 15:41:42 +02:00
akallabeth
fe590801a1
[cmake] replace custom file2hex tool
...
Use CMake to read file and convert to C array of hex values
2024-09-30 10:50:36 +02:00
akallabeth
6e6f50c088
[client,common] improve grab description
...
Better describe what +grab-keyboard and +grab-mouse do.
2024-09-27 13:39:00 +02:00
Armin Novak
66b6a90cc7
[client,x11] fix xf_GetWindowProperty arguments
...
Use BYTE* as argument and cast later to desired type
2024-09-25 10:31:38 +02:00
David Fort
609d04deab
Merge pull request #10671 from akallabeth/workarea-fix
...
[client,x11] fix reading of work area
2024-09-25 07:18:54 +02:00
akallabeth
0d8764263f
[client,sdl] eliminate unused variables
2024-09-24 19:45:20 +02:00
akallabeth
01d565398e
[client,x11] fix reading of work area
...
https://specifications.freedesktop.org/wm-spec/1.4/ar01s03.html
_NET_CURRENT_DESKTOP might not be supported by a window manager. Ignore
failures there and just take the first monitor dimensions.
2024-09-24 13:07:22 +02:00
akallabeth
1f3e6decf2
[client,common] fix possible integer overflow
2024-09-24 11:31:40 +02:00
akallabeth
3d210d815d
[client,X11] fix sign of shifted type
2024-09-24 11:30:23 +02:00
akallabeth
26003e59cc
[va_list] initialize with ={0};
2024-09-24 11:06:18 +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
akallabeth
239440e28d
[warnings] remove or comment unused macros
2024-09-20 18:49:38 +02:00
akallabeth
69527e117a
[client,X11] update _NET_WM_STATE for WS_EX_TOPMOST
...
* Set _NET_WM_STATE_ABOVE if WS_EX_TOPMOST is set and WS_EX_TOOLWINDOW
clear for a window style
* Clear _NET_WM_STATE_ABOVE in all other cases
2024-09-20 11:33:29 +02:00
akallabeth
d0c1e6055f
[client,X11] add missing _NET_WM_STATE* atoms
2024-09-20 11:33:26 +02:00
akallabeth
0a24f12281
[client,X11] update window style
...
* if WINDOW_ORDER_STATE_NEW is not set also update
2024-09-20 11:31:34 +02:00
akallabeth
fd3c7633d6
[client,X11] fix rails modal windows
...
xf_XSetTransientForHint of windows of type
(WS_EX_CONTROLPARENT | WS_EX_TOOLWINDOW | WS_EX_DLGMODALFRAME)
and parent window set
2024-09-20 11:31:32 +02:00
akallabeth
c8e6b1b71f
[client,x11] log rail WINDOW_STATE_ORDER
2024-09-20 11:31:30 +02:00
akallabeth
2b1abcd550
[client,x11] add helper util x11_error_to_string
...
The helper function x11_error_to_string stringifies a X11 error return
code.
2024-09-20 11:31:27 +02:00
akallabeth
f67e641cce
[client,X11] add helper functions for rail window style
...
* window_styles_to_string
* window_styles_ex_to_string
2024-09-20 11:31:24 +02:00
akallabeth
7a607dbc53
Merge pull request #10630 from akallabeth/disable-ctad-maybe-unuspported
...
[build,c++] add CXXCompilerFlags to (un)set warnings
2024-09-20 10:48:56 +02:00
akallabeth
699fc70941
[client,sdl] update to current sdl3-api
2024-09-20 10:19:29 +02:00
Armin Novak
02b98e9287
[client,sdl] use constexpr instead of defines
2024-09-20 09:17:03 +02:00