Commit Graph

1909 Commits

Author SHA1 Message Date
akallabeth
efb70690b3 [client,x11] improve action script logging 2025-02-26 18:49:26 +01:00
akallabeth
f817301858 [client,x11] reduce verbosity of actionscript log 2025-02-24 21:03:29 +01:00
akallabeth
d100bff706 [client,x11] fix dynamic resize with fullscreen 2025-02-16 09:46:14 +01:00
akallabeth
a2950f61c8 [client,x11] only filter input on floatbar lock 2025-02-16 09:06:37 +01:00
akallabeth
8db537a07c [client,warnings] fix -Wunused-parameter for x11 2025-02-13 15:54:10 +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
52b2dbbfdf Merge pull request #11166 from akallabeth/warn-fix-cast
[warnings] fix sign conversion
2025-02-12 14:31:35 +01:00
Armin Novak
0e006e31fe [warnings] fix sign conversion 2025-02-12 12:52:29 +01:00
Armin Novak
24b3dcb6b2 [client,x11] fix action script usage
do not terminate if the action script does not exist.
2025-02-12 09:51:00 +01:00
akallabeth
7178392eb1 [client,x11] reconfigure mouse mapping on MappingPointer 2025-02-11 17:05:50 +01:00
akallabeth
adbd80da23 [client,x11] use FREERDP_REMAP_TABLE 2025-02-11 13:35:32 +01:00
akallabeth
67877d5e7c [client,x11] update MappingNotify handling 2025-02-11 13:24:28 +01:00
akallabeth
bc6f6255b3 [client,x11] remove x11 lock log messages 2025-02-11 13:15:35 +01:00
akallabeth
469588d61d [locale,keyboard] fix integer conversions 2025-02-10 13:27:46 +01:00
akallabeth
4013b3132b [clang,tidy] fix sign warnings 2025-02-10 13:11:16 +01:00
akallabeth
00e61074b2 [unused] eliminate unused functions 2025-02-10 09:32:19 +01:00
akallabeth
8a69258f38 [client,x11] fix warnings 2025-02-10 09:32:16 +01:00
Igor V. Kovalenko
d83d4e75f2 [client,x11] fix build with Xrandr but without Xinerama enabled 2025-02-02 10:01:44 +03:00
akallabeth
89d6ddc78d [client,x11] fix multi monitor settings 2025-01-19 16:03:33 +01:00
akallabeth
ea2022b76b [clang,tidy] fix warnings 2025-01-15 09:32:52 +01:00
akallabeth
ba424d7600 [client,x11] fix coordinate sign type 2025-01-14 22:05:52 +01:00
akallabeth
40cdb18431 [client,x11] fix missing assertions 2024-12-31 09:59:52 +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
91d1c217f9 [client,x11] reset buffer length when sending
When sending clipboard data reset the intermediate buffer position. This
way the buffer is always 0 at beginning of reads, even if the same
clipboard contents is requested in a different format.
2024-12-10 11:55:45 +01:00
akallabeth
dc03c9bc4c [client,x11] fix reset of incremental read
in some cases no event with 0 length is posted for clipboard events.
Ensure the incremental clipboard copy mode is reset when new formats are
announced
2024-12-10 09:58:28 +01:00
akallabeth
3dbbe687ea [client,x11] fix possible NULL dereference 2024-12-09 10:03:17 +01:00
akallabeth
344841714c Merge pull request #10844 from akallabeth/cmake-mulitconfig
Cmake multiconfig
2024-12-07 17:43:05 +01:00
akallabeth
15b2ee55b7 [client,x11] fix type of allocated memory 2024-12-06 11:27:17 +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
48ada610e1 Merge pull request #10923 from akallabeth/clip-crash-fix
[client,x11] fix clipboard incremental data update
2024-12-05 16:13:46 +01:00
akallabeth
6378b3ae72 [client,x11] clean up clipboard reading
prevent possible out of bound reads
2024-12-05 13:28:21 +01:00
akallabeth
141dc8b830 [client,x11] fix some rail z-ordering issues
- Always call xf_XSetTransientForHint unless style has WS_CHILD set.
  xf_XSetTransientForHint in turn checks if a parent is set, which is
  basically the only hint we have for managing/forcing the z-order.
  Everything else is irrelevant in that regard (except WS_EX_TOPMOST)
  See https://learn.microsoft.com/en-us/windows/win32/winmsg/window-features#owned-windows
- Make _NET_WM_STATE_ABOVE only dependent on WS_EX_TOPMOST
2024-12-05 11:22:23 +01:00
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