Commit Graph

1877 Commits

Author SHA1 Message Date
akallabeth
ba8fd2ada5
[cmake] force configuration options
limit multiconfiguration options to supported types
2024-12-05 09:36:23 +01:00
akallabeth
9cc79f3797
[winpr,clipboard] fix SetClipboardData
* calloc an additional byte to add (possibly) missing zero termination
* For string types determine length by strnlen
2024-11-30 16:40:24 +01:00
akallabeth
f7e5e6507b
Merge pull request #10895 from akallabeth/cmake-format
Cmake format
2024-11-28 14:52:19 +01:00
Armin Novak
601249115f
[codespell] fix spelling mistakes 2024-11-28 11:52:22 +01:00
akallabeth
faae38120c
[cmake,format] reformat all cmake files 2024-11-27 20:41:48 +01:00
Ondrej Holy
946091bcdb [client,x11] use xf_lock_x11 in xf_cliprdr_server_format_list
Currently, the xfreerdp client segfaults when the
`xf_cliprdr_process_selection_request` and
`xf_cliprdr_server_format_list` functions run concurrently. They are
both reading and writing the `serverFormats`, `numServerFormats`,
`response` and possibly some other properties. Let's use the
`xf_local_x11` in the `xf_cliprdr_server_format_list` function
to prevent this.

See: https://issues.redhat.com/browse/RHEL-68126
2024-11-25 12:49:06 +01:00
amazingfate
53ad1ea860 [client,X11] ignore mouse events not originating in session window
This is a relaunch of d4be1717c2, which
was deleted by e136444f51.
2024-11-21 12:01:33 +01:00
stephanebill
4f2afa8c47 spell check with codespell 2024-11-20 16:53:40 -05:00
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
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
aa954d9be9
[warnings] fix various compiler warnings 2024-10-29 15:49:43 +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
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
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
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
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
Armin Novak
c86a78bef7
[man] add manpage for global configuration 2024-10-02 23:28:05 +02:00
akallabeth
47c5070805
Merge pull request #10635 from akallabeth/initialize-variables
Initialize variables
2024-09-30 16:04:20 +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
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
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
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
bb242b9a89
[return checks] fix use of WaitForSingleObject 2024-09-16 08:22:37 +02:00
akallabeth
965d231e49
[return checks] fix use of CloseHandle 2024-09-16 08:22:31 +02:00
akallabeth
7c8c14294f
[return checks] fix use of ReleaseMutex 2024-09-16 06:48:06 +02:00
akallabeth
c9b0c9ecd5
[warnings] remove unused variables 2024-09-12 10:08:10 +02:00
akallabeth
b2d58de1da
[client,X11] fix Wtautological-constant-out-of-range-compare 2024-09-12 09:08:58 +02:00
akallabeth
ae95b66922
[warnings] fix portability [cm]alloc size 0 2024-09-11 20:50:33 +02:00
akallabeth
ba7465abf5
Merge pull request #10585 from akallabeth/x11-clip-cache-fix
[client,x11] fix clipboard cache
2024-09-10 14:31:25 +02:00
akallabeth
fcdd03a020
[client,x11] fix clipboard cache
Use new function format_to_cache_slot to convert a clipboard format to a
valid key value for wHashTable. This avoids issues with our synthesized
CF_RAW format (value 0) which is an invalid key for wHashTable
2024-09-10 13:35:21 +02:00
akallabeth
215f798665
[client,x11] add minimize shortcut 2024-09-10 12:29:12 +02:00
akallabeth
889ae65a1f
[warnings] add WINPR_CAST_CONST_PTR_AWAY
simple macro casting a const pointer to a non const one.
2024-09-04 20:55:17 +02:00
akallabeth
5e123735fa
[warnings] fixed sign-compare 2024-09-04 10:14:05 +02:00
akallabeth
2fc791fe9b [client,X11] fix shadowed variable 2024-09-04 09:45:00 +02:00
akallabeth
baa70d1ab6
[warnings] fix compare integers of different signs 2024-09-03 15:10:46 +02:00