Commit Graph

178 Commits

Author SHA1 Message Date
akallabeth
6414d81a58 codespell 2025-11-11 08:48:22 +01:00
akallabeth
65f18983ed [warnings] Fix format string errors
* Fix casts of format string arguments (%p requires void*)
* Fix format string to match type of arguments
2025-08-13 15:09:48 +02:00
akallabeth
ff5aca1b0b [client,x11] add more logging X11 calls 2025-05-23 12:15:09 +02:00
akallabeth
278a800dff [client,x11] add WITH_DEBUG_KBD log messages 2025-05-06 11:00:41 +02:00
akallabeth
0836419757 [client,x11,sdl] sync keyboard state after hotkey
If a client side key combination was detected issue a keybard state sync
to reset the server side keyboard to initial state with no keys pressed.
2025-03-25 08:37:53 +01:00
akallabeth
67f723793f [clients] remove keyboard state sync on CAPS release
The keyboard state was synced in xfreerdp (and more recently
sdl3-freerdp) when the CAPS key was released.
Some investigation revealed this to be a historic workaround for loss of
keyboard state sync (e.g. NUK, CAPS or SCROLL getting out of sync)

This can not happen anymore as all events during windows focus are
processed properly and every time the keyboard state changes outside it
is synchronized when focus is gained.
2025-03-24 18:03:40 +01:00
akallabeth
d41c2b3dc8 ]client,x11] fix unicode lookup 2025-03-22 20:49:35 +01:00
akallabeth
1bd4f0b146 [client,x11] add <ctrl>+<alt>+d shortcut
allow immediate disconnect of a session with a keyboard shortcut.
2025-03-19 11:06:09 +01:00
akallabeth
de240cfb75 [client,x11] add apple keyboard fallback
Add workaround for missing XkbGetNames on apple devices
2025-03-10 11:11:21 +01:00
Armin Novak
7d87de6572 [client,x11] decrease logging verbosity
load_map_from_xkbfile now only logs WLOG_TRACE when dumping the keycode
to scancode map.
2025-03-05 22:27:41 +01:00
akallabeth
8ea2c5dde6 [client,x11] implement keyboard mapping
* move to client code
* fix parse_xkb_rule_names
2025-03-04 13:26:42 +01:00
akallabeth
8db537a07c [client,warnings] fix -Wunused-parameter for x11 2025-02-13 15:54:10 +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
8a69258f38 [client,x11] fix warnings 2025-02-10 09:32:16 +01:00
akallabeth
ea2022b76b [clang,tidy] fix warnings 2025-01-15 09:32: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
78acedb40e [warnigns] fix Wshorten-64-to-32 2024-11-11 10:22:37 +01:00
akallabeth
c0a3abfc62 [warnings] duplicate include 2024-10-22 09:50:20 +02:00
akallabeth
5353bff104 [assert] use WINPR_STATIC_ASSERT 2024-10-16 19:07:07 +02:00
akallabeth
b2d58de1da [client,X11] fix Wtautological-constant-out-of-range-compare 2024-09-12 09:08:58 +02:00
akallabeth
215f798665 [client,x11] add minimize shortcut 2024-09-10 12:29:12 +02:00
akallabeth
1d33095500 [warnings] fix cert-err33-c
Fix unused return values, cast to void if on purpose
2024-08-29 10:19:27 +02:00
Armin Novak
44b07721ec [client,X11] fix ActionScript
* Unify script calls
* Update documentation
* Fix home directory
2024-07-25 09:42:03 +02:00
akallabeth
2477b37128 [warnings,types] fix BOOL assingments 2024-04-12 09:45:09 +02:00
akallabeth
80c562d040 [coverity] 1543235 Out-of-bounds access 2024-04-11 12:04:07 +02:00
akallabeth
61e0d122b7 [coverity] 1543235 Out-of-bounds access 2024-04-11 12:04:07 +02:00
akallabeth
c87368310a [client,x11] fix right control ungrab
ungrab keybaord/mouse on first right control press. Fixes #9959
2024-03-12 10:13:25 +01:00
akallabeth
b894199f72 [winpr,collections] add generic string clone functions
The ArrayList, HashTable, ... New functions require
void* (*fkt)(const void* ptr) type functions. Provide a generic wrapper
for CHAR and WCHAR strdup to eliminate warnings. Also export a
corresponding free function to avoid issues with runtime
differences.
2024-02-15 11:49:16 +01:00
akallabeth
0e44b2c674 [clang-tidy] clang-analyzer-unix.Malloc 2024-02-15 11:49:16 +01:00
akallabeth
0ba995655d [clang-tidy] cppcoreguidelines-init-variables 2024-02-15 11:49:16 +01:00
akallabeth
207def5c56 [clang-tidy] readability-isolate-declaration 2024-02-15 11:49:16 +01:00
akallabeth
4e438d1c3e [client] make settings opaque 2023-11-24 14:54:56 +01:00
Armin Novak
3ea38175b4 [locale,keyboard] fix keyboard mapping on apple 2023-08-31 11:39:22 +02:00
akallabeth
3dbd9c7eeb [client,x11] fix unicode input
key up and down events were reverted
2023-07-03 13:21:43 +02:00
Armin Novak
a4c6b36a19 [build] fix memory sanitizer stack frame warnings 2023-06-07 09:14:45 +02:00
Armin Novak
d978a0dbdb [client,x11] fix rail checks
rail might be deactivated during connect, so ensure that the default
session rendering path properly checks the window pointer
2023-01-10 11:49:02 +01:00
Armin Novak
2b49047c34 [client] Fix keyboard input
properly pass key repeat events to the server.
2022-12-13 14:37:05 +01:00
Armin Novak
96243c1d17 [x11,client] unify modifier map update/free 2022-12-09 12:30:14 +01:00
akallabeth
43c5289928 Replaced memset/ZeroMemory with initializer
* Addes WINPR_ASSERT on many occations
* Replaced memset with array initializer
* Replaced ZeroMemory with array initializer
2022-10-14 12:11:01 +02:00
Armin Novak
707b9348ee Unify encomsp request control code 2022-09-13 09:22:41 +02:00
akallabeth
f25261e271 Unifiy string append functions 2022-06-17 08:41:46 +02:00
akallabeth
962c5c3ef0 Fixed dead store warnings 2022-04-28 12:37:19 +02:00
akallabeth
d22ef1786b Proper use of rdpSettings in client
* Use getter/setter
* Fix uninitialized uses
2022-03-28 15:52:32 +02:00
Armin Novak
4d03d7c0bf Freerdp remove #ifdef HAVE_CONFIG_H 2022-03-03 11:26:48 +01:00
Armin Novak
b2ad47a809 Reorganized FreeRDP headers 2022-03-03 11:26:48 +01:00
Armin Novak
1b71bba2a0 Fixed compilation warnings 2022-02-22 11:29:56 +01:00
Armin Novak
f03059e718 Extended AINPUT API:
* Each event now has a timestamp
* Relative and absolute events are sent simultaneously
* Added a flag indicating relative events are available
2022-02-22 09:44:13 +01:00
akallabeth
e136444f51 Fixed xinput and x11 event priority
* Prefer xinput events over x11 events for mouse input
* Prefer xinput raw events over xinput events:
  * Only use when the mouse is grabbed (events are not bound to a
    specific window but are global)
  * Only use for relative mouse input
2022-02-22 09:44:13 +01:00