David Fort
2e1bf90bd9
Merge pull request #4885 from akallabeth/autoreconnect_handle_window_events
...
Fixed #3423 : Process xevents when in reconnect mode.
2018-10-03 09:42:16 +02:00
Armin Novak
00489ae75b
Reworked checks in xf_disp.c
2018-10-02 12:33:52 +02:00
Armin Novak
f332779982
Fixed floatbar X11 leak.
2018-10-01 10:50:47 +02:00
Armin Novak
046d2296a0
Fixed floatbar X11 leak.
2018-10-01 10:49:30 +02:00
Armin Novak
a5b689b35d
Readded override redirect but reset on focus loss.
2018-09-26 12:38:16 +02:00
Armin Novak
316eed1fbf
Menus are no longer popup windows but dropdown menus.
2018-09-26 12:38:16 +02:00
Armin Novak
fa7902c362
Fixed argument check for floatbar events.
2018-09-26 10:14:51 +02:00
David Fort
d0612151f9
Merge pull request #4874 from r-barnett/fix-MonitorLocalShift
...
MonitorLocalShiftX,Y should be set when 1st monitor from MonitorIds s…
2018-09-26 10:02:49 +02:00
Martin Fleisz
a90b74b8dc
Merge pull request #4879 from akallabeth/clip_fix
...
Fixes for clipboard #4876
2018-09-26 09:37:41 +02:00
akallabeth
0b8a66188c
Merge pull request #4865 from mmattes/feature/floatbar
...
Feature/floatbar for X11
2018-09-25 16:34:20 +02:00
Armin Novak
8357f61818
Fixed load/unload for display channel.
2018-09-24 16:44:25 +02:00
Armin Novak
51f97f2d3e
Fixed #3423 : Process xevents when in reconnect mode.
...
Fixed crashes due to unloaded disp channel in reconnect mode.
2018-09-24 16:24:32 +02:00
Armin Novak
13478c7445
Skip empty server format response.
2018-09-24 12:47:46 +02:00
Armin Novak
897c0c72a7
Unified auto_reconnect functions for all clients.
2018-09-24 10:31:43 +02:00
rbarnett
41664572a5
MonitorLocalShiftX,Y should be set when 1st monitor from MonitorIds selected as primary
2018-09-21 13:40:48 -05:00
akallabeth
30601608e4
Merge pull request #4855 from r-barnett/fix-logoff-exit-code
...
Map a particular disconnect situation triggered by a user logging off…
2018-09-20 12:07:36 +02:00
rbarnett
5d3e76bd80
Replace cryptic names; move the disconnect ultimatum reasons enum into public API and rename; remove setter
2018-09-19 09:36:39 -05:00
rbarnett
8458266183
Store the disconnect provider ulimatum reason in a new field in struct rdp_context and move the test for a logoff reason to xf_client.c
2018-09-18 15:31:10 -05:00
Markus Mattes
36fc5dde21
fix hidden floatbar consumes a lot of cpu
2018-09-18 21:46:02 +02:00
Markus Mattes
21e4804a7f
implemented floatbar for x11
2018-09-18 21:25:51 +02:00
Martin Fleisz
0b7b9c0dc4
Merge pull request #4842 from akallabeth/smartcard_rdp_logon
...
Added /smartcard-logon option to set flag. (Stripped version of #4837…
2018-09-17 09:08:47 +02:00
Martin Fleisz
3c158299a3
Merge pull request #4853 from r-barnett/add-nego-fail-exit-code
...
Add an exit code for a security protocol negotiation failure
2018-09-14 10:59:31 +02:00
Armin Novak
97c909107f
Fixed const correctness for RAIL callbacks.
2018-09-14 10:07:22 +02:00
rbarnett
1e7be9908b
Add an exit code for a security protocol negotiation failure
2018-09-13 10:29:23 -05:00
rbarnett
4e97edadec
Set an error exit code for an unsuccessful reconnect
2018-09-12 10:16:27 -05:00
Armin Novak
0de43c8b85
Added /smartcard-logon option to set flag. (Stripped version of #4837 by @informatimago)
2018-09-04 15:50:03 +02:00
Armin Novak
54f3a388da
Fixed #4835 : BeginPaint callback now optional.
2018-09-04 10:40:17 +02:00
Armin Novak
62c1696d4c
Removed use of unchecked sprintf
2018-08-27 14:34:42 +02:00
Armin Novak
114abad767
Removed use of strcpy.
2018-08-27 14:34:09 +02:00
Armin Novak
48125164d7
Fixed dead initialization.
2018-08-24 13:40:36 +02:00
Martin Fleisz
f9e52c1850
Merge pull request #4815 from akallabeth/async_transport_remove
...
Removed +async-transport options
2018-08-24 09:48:51 +02:00
Martin Fleisz
ebef5a5e2e
Merge pull request #4811 from akallabeth/dyn_fullscreen_fix
...
Fixed single monitor fullscreen resolution update.
2018-08-23 16:58:22 +02:00
Armin Novak
c3a26b0d6a
Removed +async-transport options
...
The async transport option is broken by design.
If used the main loop is called from the transport thread and the
main thread of the application.
Unless the transport layer is refactored to just work on queues
(input and output) this option will never work, therefore remove it.
2018-08-22 13:56:37 +02:00
Ondrej Holy
e7d5aae514
client/x11: Silence false positive warnings from covscan
...
Add code annotation to silence false positive warnings from covscan
due to omitting termination \0.
buffer_size: Calling strncpy with a source string whose length (13 chars) is greater than or equal to the size argument (13) will fail to null-terminate "&tmp[cs]".
2018-08-22 13:35:43 +02:00
Ondrej Holy
baeb29a7e0
client/x11: Fix leak found by covscan
...
leaked_storage: Variable "actionScript" going out of scope leaks the storage it points to.
2018-08-22 13:35:43 +02:00
Ondrej Holy
dde4c38382
client/x11: Format code by astyle
...
Run ./scripts/format_code.sh before the following changes.
2018-08-22 13:35:43 +02:00
Armin Novak
02dc6ab3f7
Fixed single monitor fullscreen resolution update.
2018-08-21 13:00:39 +02:00
Andreas Gröger
525d089fa8
Update X11-modifier key state on focus_in
2018-08-13 14:45:05 +02:00
Armin Novak
a334aa9657
Fixed #4786 : Added fullscreen handling for dynamic resolution.
2018-08-08 13:04:26 +02:00
akallabeth
88474af925
Merge pull request #4762 from mmattes/issue/4757
...
Fix for #4757
2018-07-30 13:31:32 +02:00
Martin Fleisz
143a2b149a
Merge pull request #4755 from akallabeth/dyn_resize_fix
...
Fixed #4679 , #4753 dynamic resizing
2018-07-30 12:28:38 +02:00
Markus Mattes
e6209748fa
Removed double ifdef WITH_XI, XInput2.h already included
2018-07-24 14:03:45 +02:00
Markus Mattes
bad8bbadf4
Fix for #4757
2018-07-22 20:00:25 +02:00
Armin Novak
328eba7fe9
Fix #4752 : Provide message free function for channel queue.
2018-07-18 15:31:07 +02:00
Armin Novak
4e4ec0b035
Fix #4752 : Unsubscirbe all PubSub in dynamic channel.
2018-07-18 14:29:22 +02:00
Armin Novak
ced4d06f74
Fixed #4679 , #4753 dynamic resizing
...
Simplified resize logic, do not check before setting current resolution.
2018-07-18 09:48:19 +02:00
Martin Fleisz
187cf000bc
Merge pull request #4706 from khvMX/master
...
X11: fixed Right-Ctrl ungrab feature (PR #3622 )
2018-07-03 12:45:15 +02:00
Armin Novak
273655a850
Follow up fix for #4631
...
Remember the callback state to avoid calling reerdp_channels_post_connect
before the corresponding client callback has benn called.
This might happen during redirection and reconnection.
2018-06-18 10:44:35 +02:00
Viktor Mukha
16cde2ee28
X11: fixed Right-Ctrl ungrab feature (PR #3622 )
2018-06-08 11:35:02 +02:00
Andre Esteve
ab0bc2a7f5
X11: Fix fullscreen toggle
...
1. Fix fullscreen toggle for window managers that do not have multimonitor fullscreen extension support
2. Fix current monitor detection
3. Fix calculation of vscreen boundaries when single monitor is being used
4. Fix start up position of window when starting (used to always go to the top left corener, now centered)
Still a problem:
1. Window decorations do not show when going windowed
2. Smart resizing makes i3 really sad :(
3. Moving window across monitors and going fullscreen always maximizes on startup screen (when not using /multimon)
2018-05-05 18:24:23 -07:00
Armin Novak
3a54713103
Fixed invalid argument parameter
2018-05-02 13:08:30 +02:00
Armin Novak
a1c3c1ad64
Added proper return value checks for clipboard data.
2018-05-02 09:21:42 +02:00
Armin Novak
5628ed5e7d
Check for window existence in remote app mode before access
...
X11 is asynchronous, so events arriving in xf_event_PropertyNotify
may access a window that has already been discarded. Check that before
reading properties.
2018-04-12 14:39:37 +02:00
Bernhard Miklautz
c0afb8bd6b
Merge pull request #4322 from akallabeth/rail_fixes
...
Rail fixes for GFX mode
2018-04-11 10:49:44 +02:00
Armin Novak
c70bf8329f
Fixed XPixmap checks.
2018-04-04 10:46:14 +02:00
Armin Novak
065a924496
Fixed format string types.
2018-04-04 10:45:57 +02:00
akallabeth
b37a98182d
Merge pull request #4457 from RangeeGmbH/fix_custom_sizes
...
Fix /size: /w: /h: with /monitors: (Fix custom sizes)
2018-04-04 10:35:47 +02:00
Armin Novak
d249335708
Removed winpr_exit
...
As the cleanup functions are called by atexit a dedicated
cleanup call is no longer required.
2018-04-03 12:56:33 +02:00
Kai Harms
222bf9245e
Fix /size: /w: /h: with /monitor: (Fix custom sizes)
...
Fix weird rectangle by removing checks
2018-03-29 07:12:53 +00:00
Ilya Shipitsin
14c15c680d
resolve several possible null pointer dereference
...
issue detected by cppcheck
[channels/drive/client/drive_main.c:454] -> [channels/drive/client/drive_main.c:443]: (warning) Either the condition '!irp' is redundant or there is possible null pointer dereference: irp.
[client/X11/xf_window.c:582] -> [client/X11/xf_window.c:580]: (warning) Either the condition '!xfc' is redundant or there is possible null pointer dereference: xfc.
[winpr/libwinpr/path/test/TestPathShell.c:40] -> [winpr/libwinpr/path/test/TestPathShell.c:43]: (warning) Either the condition '!path' is redundant or there is possible null pointer dereference: path.
[winpr/libwinpr/path/test/TestPathShell.c:49] -> [winpr/libwinpr/path/test/TestPathShell.c:52]: (warning) Either the condition '!path' is redundant or there is possible null pointer dereference: path.
2018-03-24 17:46:39 +05:00
David Fort
103686eb12
Merge pull request #4497 from akallabeth/kwin_multimon
...
Fix #2707 : Set fullscreen first
2018-03-19 19:12:02 +01:00
Armin Novak
338e74a6fb
Fix #2707 : Set fullscreen first
...
Due to kwin bug https://bugs.kde.org/show_bug.cgi?id=391960
multimonitor fullscreen is not applied correctly with the
previous approach.
2018-03-19 11:54:06 +01:00
Armin Novak
87ebdf0052
Fixed #4493 : duplicate typedef.
2018-03-17 15:25:41 +01:00
Armin Novak
9bd13c25c9
Added WaitableTimer implementation for mac OS.
2018-03-12 13:39:21 +01:00
Armin Novak
44eebbb6e0
Fixed compiler warnings.
2018-03-07 14:47:06 +01:00
Armin Novak
2517755d25
Fixed thread function return and parameters.
2018-03-07 14:36:55 +01:00
Martin Fleisz
91ee4c2e9c
Merge pull request #4454 from akallabeth/nightly
...
Use a custom command to generate helper tool
2018-03-07 10:17:17 +01:00
Armin Novak
47110a723d
Removed duplicate checks, more functions static.
2018-03-01 12:39:29 +01:00
Armin Novak
1f7d33a2f2
Fixed read/write of surface bits command.
...
The optional field exBitmapDataHeader of TS_ BITMAP_DATA_EX was ignored.
Read and expose the data (currently unused)
2018-03-01 11:38:59 +01:00
Armin Novak
62f06ed11e
Use a custom command to generate helper tool
...
Removing elements from CMAKE_C_FLAGS is not reliable,
to use a custom command to compile the helper tool
with default CFLAGS for the system.
2018-02-21 13:14:45 +01:00
Armin Novak
b2428767b2
manpage helper tool generation fixes
...
The generator tool is called by CMake and is incompatible
with certain options. Therefore this commit
* removes WinPR dependency
* removes -fsanitize=* from CFLAGS
2018-02-16 13:57:34 +01:00
Martin Fleisz
5d1ff02d02
Merge pull request #4414 from akallabeth/pthread_cleanup_fix
...
Pthread cleanup fix
2018-02-15 11:02:37 +01:00
Armin Novak
990b8c23a9
Fixed PubSub function pointer casts.
2018-02-14 11:00:52 +01:00
David Fort
441975a4aa
video, geometry: fix prototypes for timer callbacks
2018-02-14 10:16:38 +01:00
David Fort
484abe0567
video: fix invalid geometry and invalid argument passing to time pubsub
2018-02-14 00:08:52 +01:00
Martin Fleisz
bc4b57c08d
Merge pull request #4426 from akallabeth/pointer_null_fix
...
Check if xfreerdp window != NULL
2018-02-13 14:37:13 +01:00
Armin Novak
7274ffe6a8
Check if xfreerdp window != NULL
...
When xfreerdp aborts a connection it may be before xfc->window was allocated.
Don't access it in that case.
2018-02-13 13:38:02 +01:00
Armin Novak
3eb004042e
Fixed code duplication.
2018-02-13 10:52:53 +01:00
Armin Novak
c7d701bdf8
Added software decoding fallback for RDPVOR
2018-02-13 10:52:53 +01:00
Armin Novak
11f11a8763
Fixed scaled drawing of video content.
2018-02-13 10:52:53 +01:00
David Fort
b8e3b232de
video: mutualize things in the common channel code
2018-02-13 10:52:53 +01:00
David Fort
0743559d9c
video: do cleanups in post_connect
2018-02-13 10:51:45 +01:00
David Fort
ca4f75ccd3
video: fixed uninit of channel
2018-02-13 10:51:45 +01:00
David Fort
4b240dad0e
video+geometry: fixed leaks, a segfault and concurrent accesses
2018-02-13 10:51:07 +01:00
David Fort
6e022ae07c
video: fix prototype and cleanup at exit
2018-02-13 10:51:07 +01:00
David Fort
a07efb73ec
video: an implementation of MS-RDPEVOR for X11
...
Implements the decoding of video streams using common H264 decoders. We also implement
a trivial feedback algorithm.
Sponsored by: Rangee GmbH (http://www.rangee.de )
2018-02-13 10:51:07 +01:00
Armin Novak
2cf10cc359
bitmap free now always deallocating all resources.
2018-02-13 10:18:43 +01:00
Armin Novak
62607e3b02
Fixed accidental free of XImage data.
2018-02-12 12:44:51 +01:00
Armin Novak
2d58e96dcc
Exit main thread with winpr_exit to trigger resource cleanup.
...
When using pthread_once with destructors they are only called,
if each thread (including the main thread) is exited with pthread_exit.
Introducing winpr_exit as a wrapper for that purpose.
2018-02-12 10:33:02 +01:00
Armin Novak
7c0a33632b
Fixed #4412 : XImage must be freed with XDestroyImage
2018-02-12 10:02:35 +01:00
Armin Novak
1b9da01612
Fixed cleanup of xfc->drawable.
2018-02-09 11:42:18 +01:00
Armin Novak
d181c79463
Fixed rail window cleanup.
2018-02-09 09:35:26 +01:00
Armin Novak
6950d95af0
Fix #4398 : Ignore min/max info for non existing window.
2018-02-08 16:55:11 +01:00
Armin Novak
ed9d86b1a3
Fixed GFX output expose.
2018-02-08 13:55:36 +01:00
Armin Novak
c0ec81c3c7
Do not update client if output suppressed.
2018-02-08 11:59:00 +01:00
Armin Novak
253beda330
Fixed formatting.
2018-02-08 11:55:57 +01:00
Armin Novak
17b17d609a
Fixed SuppressOutput update.
2018-02-08 11:55:15 +01:00
Bernhard Miklautz
db2d1ffcce
cmdline refactor: move cmd struct to extra file
...
Move the cmd struct to a extra header file. This allows it to only
include the header file in generate_argument_docbook.c and therefore
remove a linker dependencies.
2018-02-01 17:13:44 +01:00
Armin Novak
7f75b57fd6
Fixed memory leak.
2018-01-22 16:17:37 +01:00
Armin Novak
51e59e1f2e
Check argument, xfc->window is NULL in RAILS mode
2018-01-08 13:21:03 +01:00