Commit Graph

1838 Commits

Author SHA1 Message Date
Cendio
d10df452ee Ensure (partial) resize functionality with automated tests
This test suite was built with cgreen, and has various tests that
tries to ensure that we didn't break something while developing the
dynamic resize feature.

Signed-off-by: Henrik Andersson <hean01@cendio.com>
Signed-off-by: Karl Mikaelsson <derfian@cendio.se>
Signed-off-by: Thomas Nilefalk <thoni56@cendio.se>
2017-12-07 11:15:03 +01:00
Cendio
85c10b5bc0 Remember window position when toggling fullscreen with RDPEDISP
The rdesktop window used to move to a new position on the screen after
leaving fullscreen. This commit restores the window to the position it
had before entering fullscreen.

Signed-off-by: Henrik Andersson <hean01@cendio.com>
Signed-off-by: Karl Mikaelsson <derfian@cendio.se>
Signed-off-by: Thomas Nilefalk <thoni56@cendio.se>
2017-12-07 11:15:03 +01:00
Cendio
2be151b328 Always call XRRUpdateConfiguration on root window resize
This fixes a problem where HeightOfScreen and WidthOfScreen returned
old, incorrect sizes after the root window was resized while rdesktop
was not in fullscreen. Calling XRRUpdateConfiguration ensures that the
HeightOfScreen and WidthOfScreen macros return the proper values.

Signed-off-by: Henrik Andersson <hean01@cendio.com>
Signed-off-by: Karl Mikaelsson <derfian@cendio.se>
Signed-off-by: Thomas Nilefalk <thoni56@cendio.se>
2017-12-07 11:15:03 +01:00
Cendio
ab50ea31cf Implement dynamic session resize
This adds support for resizing the RDP session dynamically based on
the window size. Some complicated logic has been added to avoid
sending excessive amounts of resize requests to the RDP server.

When supported, this resize mechanism should use the RDPEDISP way of
signalling the server to initiate a Deactivate/Activate sequence, but
rdesktop will fall back on Disconnect/Reconnect if RDPEDISP is not
supported by the server.

ui_select has been refactored and most functionality has been broken
out into three new functions, simplifying ui_select into a loop.

Signed-off-by: Henrik Andersson <hean01@cendio.com>
Signed-off-by: Karl Mikaelsson <derfian@cendio.se>
Signed-off-by: Thomas Nilefalk <thoni56@cendio.se>
2017-12-07 11:15:03 +01:00
Cendio
4ea0e06713 Refactor deactivation of seamless mode
Toggling out of seamless mode is piggy backed on toggle fullscreen.
This introduces a broken behaviour were you get out of seamless mode
and subsequent calls to toggle fullscreen will not take you back.
Just toggle the window between windowed and fullscreen mode.

This refactoring will disable toggle between fullscreen and windowed
mode when rdesktop is started in seamless mode. Still there is a
problem were you can not go back into seamless mode when deactivated.

Signed-off-by: Henrik Andersson <hean01@cendio.com>
Signed-off-by: Thomas Nilefalk <thoni56@cendio.se>
2017-12-07 10:30:01 +01:00
Henrik Andersson
5961aabc00
Merge pull request #204 from uglym8/allow_short_passwords
Allow single character passwords
2017-12-04 09:03:14 +01:00
Alexander Zakharov
04ebaefede Allow single character passwords 2017-12-01 11:55:06 +03:00
Karl Mikaelsson
1f0b60a405
Merge pull request #203 from uglym8/fix_disk_logging
Fix error format
2017-11-28 14:59:20 +01:00
Alexander Zakharov
948831a3fd Fix error format 2017-11-27 18:03:07 +03:00
Henrik Andersson
45d625b20e
Merge pull request #193 from derfian/mppc-undefined-behavior
Clean up undefined behavior in complicated and/or/shift expression
2017-11-24 09:49:21 +01:00
Henrik Andersson
b5917bc9a2
Merge pull request #152 from hean01-cendio/pulseaudio
Add support for pulseaudio backend
2017-11-24 08:01:01 +01:00
Henrik Andersson
0bc9d7632c
Merge pull request #200 from alexandrevicenzi/ignore_obj
Ignore object files.
2017-11-24 07:53:23 +01:00
Alexandre Vicenzi
4c03af1478 Ignore object files. 2017-11-23 16:19:13 -02:00
Henrik Andersson
93a2ecdc59
Merge pull request #189 from derfian/remove-uiports
Remove uiports
2017-11-15 07:58:40 +01:00
Henrik Andersson
df73c35ca4
Merge pull request #195 from derfian/libao-compiler-warnings
Remove compiler warnings from rdpsnd_libao
2017-11-15 07:57:18 +01:00
Karl Mikaelsson
d6a8f145c4 Remove compiler warnings from rdpsnd_libao
A couple of unused variables and a signed/unsigned fix.
2017-11-13 17:00:53 +01:00
Karl Mikaelsson
43a4c89cef Clean up undefined behavior in complicated and/or/shift expression
Shifting negative values is technically undefined, and we can describe
what we want to do in ways that are easier to read.
2017-11-09 18:46:07 +01:00
Cendio
d037db1086 Increase default desktop size and enable wallpaper 2017-11-09 17:15:16 +01:00
Cendio
d2cbbd46ce Move dvc_hdr_t into dvc.c 2017-11-09 17:03:59 +01:00
Cendio
f2533e0431 Fix return type for hash function 2017-11-09 16:56:31 +01:00
Cendio
2f03f65efe Add Dynamic Virtual Channels and basic RDPEDISP support
Fix issue #192

Signed-off-by: Henrik Andersson <hean01@cendio.com>
Signed-off-by: Karl Mikaelsson <derfian@cendio.se>
2017-11-09 15:39:39 +01:00
Henrik Andersson
d3d6613c78 Fix compiler warning 2017-11-03 12:49:11 +01:00
Henrik Andersson
8acf574b28 Fix compression regression introduced in commit 0c7b411
When adding support for multi fragments, we started to read and
use length from fast path packet. However a packet can be
compressed and uncompressed length should be used instead.

Fix issue #185
2017-11-03 12:33:00 +01:00
Karl Mikaelsson
afad56e6e5 Remove uiports/ 2017-11-02 16:30:13 +01:00
Henrik Andersson
50100f85e6
Merge pull request #183 from realsobek/fix-spelling-mistakes
Fix minor spelling mistakes
2017-11-02 09:20:26 +01:00
René Genz
9e99dd52d6 Fix minor spelling mistakes 2017-11-02 01:01:44 +01:00
Joshua Hudson
e7cda3dbf8 add -M for local mouse cursor 2017-11-01 06:47:31 +01:00
Henrik Andersson
5aa5a9dbfc Minor refactor of process_logon_pdu() 2017-11-01 06:47:31 +01:00
Henrik Andersson
7daf773b6a
Merge pull request #186 from derfian/suppress-output
Rename suppress output functions to match MS-RDPBCGR
2017-11-01 06:42:36 +01:00
joshudson
fe692058a2 Add Windows 10 support: add option to send DPI to server as Windows 1… (#66)
Add support  for choosing DPI of remote session
2017-11-01 06:37:18 +01:00
Karl Mikaelsson
8f83c1f6c7 Rename suppress output functions to match MS-RDPBCGR
Issue #161
2017-10-30 10:47:21 +01:00
Karl Mikaelsson
ba568443e1 Merge pull request #179 from hean01-cendio/build_warnings
Remove a bunch of compiler warnings
2017-10-27 12:34:14 +02:00
Henrik Andersson
71b0100044 Merge pull request #177 from derfian/32bit-color
Enable 32-bit color depths
2017-10-26 16:31:21 +02:00
Henrik Andersson
04bbb961ce Merge pull request #180 from derfian/remove-cvsignore
Rename .cvsignore to .gitignore
2017-10-26 16:29:19 +02:00
Henrik Andersson
a2e402556b Remove pedantic flag 2017-10-23 16:39:52 +02:00
Karl Mikaelsson
3ba4e882ba Rename .cvsignore to .gitignore 2017-10-23 12:43:21 +02:00
Henrik Andersson
f0b2b9d69a Add 'extra' warnings and 'pedantic' to cflags 2017-10-23 08:43:53 +02:00
Henrik Andersson
8c83f8957b Fix SCARD_AUTOALLOCATE handling
SCARD_AUTOALLOCATE is a define with value -1, which is compared
to an uint32. There was some missassumtion of whenever its -1 or
0xffffffff through the code.
2017-10-23 08:43:35 +02:00
Henrik Andersson
af08994cfd Fix define default logger subjects 2017-10-20 13:30:58 +02:00
Henrik Andersson
0d707ae103 Fix sign-compare compiler warnings 2017-10-20 13:30:42 +02:00
Henrik Andersson
896a923f55 Markup unused parameters 2017-10-20 11:05:52 +02:00
Karl Mikaelsson
172c76da17 Remove left-by-accident development log statements
Introduced by e35a76bce.
2017-10-18 18:59:46 +02:00
Karl Mikaelsson
8c162a5563 Enable 32-bit color depths
To enable 32-bit color depths a earlyCapabilityFlag in the CS_CORE
packet is required. When 32-bit color depth is requested, this
RNS_UD_CS_WANT_32BPP_SESSION flag will now be set. We also advertise
support for 32-bit color depths through the RNS_UD_32BPP_SUPPORT flag.
2017-10-18 12:18:50 +02:00
Henrik Andersson
987d9c1147 Merge pull request #176 from derfian/improve-mcs-connect-initial
Clarify MCS Connect Initial packet
2017-10-18 12:17:50 +02:00
Henrik Andersson
bace190ba5 Merge pull request #175 from derfian/pointer-shadows
Enable cursor shadows in all experience levels but modem
2017-10-18 10:02:49 +02:00
Karl Mikaelsson
27e447555e Rename SEC_TAG_CLI_ constants to match specification 2017-10-17 12:29:41 +02:00
Karl Mikaelsson
3bb69ac4b8 Document sec_out_mcs_connect_initial_pdu
Cross-referenced the PDU with the spec. I found and fixed a few
inconsistencies while also adding comments identifying each data
field.
2017-10-17 12:17:13 +02:00
Karl Mikaelsson
fd0846ccee Rename sec_out_mcs_data to sec_out_mcs_connect_initial_pdu 2017-10-17 12:16:51 +02:00
Henrik Andersson
fd1673392e Fix unused-but-set-variable compiler warnings 2017-10-17 10:50:14 +02:00
Karl Mikaelsson
ad98c55130 Enable cursor shadows in all experience levels but modem
Cursor shadows started working after the large pointer support was
introduced, so turn it on for most experience levels.
2017-10-17 10:40:32 +02:00