Commit Graph

60 Commits

Author SHA1 Message Date
David Sundstrom
88d55493a9 Resolve a race condition between a local move update to the RDP server, GDI orders, and RAIL orders. Previously we could receive new GDI orders for the new window position before we received the RAIL order for the new position. The caused drawing errors.
Also correct some errors in managing the GDI damage region.
2012-01-13 18:08:51 -06:00
Norbert Federa
cf3c03c60e xfreerdp: a quick workaround for some issues with TS Remote App.
Currently in Remote App mode we have no option to interact with the
remote desktop host before the first RAIL window is created.

In many situations this interaction possibility is absolutely required.
One example is that screen which gets displayed if another user is logged on.
It requires clicking a button in pre-RAIL mode so that the currently logged
on user gets notified to confirm or deny the connection.

Another example is the option to log on graphically (e.g. for hosts that
don't support NLA) without predefined credentials.

Also if the administrator sets the "User must change password at next logon"
option there is currently no way to do this in TS Remote App mode.

This change basically lets xfreerdp create the main window in Remote App mode
like in a normal session and xfi->remote_app is not set to true initially.

As soon as the rail exec result event or the first rail window creation
request is received (whatever comes first) the main window gets destroyed and
xfi->remote_app is set to true.

The second change is to disconnect immediately if the rail exec result event
reports an error, e.g. if the specified app cannot be found or if it is not
in the list of allowed applications.

This fixes FreeRDP github issue #143 and issue #308.

I'm aware that this is not the most elegant solution but it is definitely an
improvement and probably good enough for 1.0.
A nicer solution would be hiding the main window and only displaying it if
no rail exec result or rail window creation event is received after a certain
timeout ...
2012-01-02 10:27:04 +01:00
David Sundstrom
49303c8969 Fix compile error on Solaris
Fix few small issues with local move race conditions
Add missing --gdi option to command-line help
2011-12-16 15:10:07 -06:00
David Sundstrom
6bd2b736aa allow updates from cached pixmap during local moves 2011-12-09 14:26:11 -06:00
David Sundstrom
b17fe2e60e Do not do XMoveWindow after local_move event from RDP server
Do not update window area of RDP and local X window are not synchronized
Use RootWindowOfScreen for translate coordinates
2011-12-09 14:26:11 -06:00
Not Nyguen Doze
51bd226cf3 Complete local move support. Use a state machine to keep track of XEvents to infer local move start and finish. 2011-12-06 15:43:38 -08:00
Not Nyguen Doze
a70ca93c43 Add option for WITH_DEBUG_WND for window order updating, already existing in code
Correct sign on variables in xf_rail_paint
2011-12-06 15:43:38 -08:00
Not Nyguen Doze
8f38bdb87a Make popups transient, use local window manager for moves.
This fixes a number if issues on Ubuntu in particular.
2011-12-06 15:43:38 -08:00
David Sundstrom
31cbac201d Add a function to synchronize the RDP server with the local window position and size when the window is moved locally.
Complete implementation for initiating RAIL local move support, however, this is still disabled until a method is found to tell when local moves complete on the X server.
2011-12-06 15:43:38 -08:00
David Sundstrom
354b00711b After local X window manager has moved a window to a different location than what the RDP server expects, send a client update to the RDP server to inform the server of the new window position. 2011-12-06 15:43:38 -08:00
Marc-André Moreau
a63a196f53 types: refactoring to make use of standard data types when available 2011-11-19 12:19:16 -05:00
David Sundstrom
c5b9667825 Remove xf_rail_FilterWindowInfo() function. This function incorrectly calculated a new width for windows that had a negative origin (that is, windows partially off the desktop to the left). The function subtracted twice the window offset from the width. To be correct this function needed to keep track of the old and new window positions and just subtract the difference.
It turns out none of this was necessary.  X will handle windows placed partially off-screen and draw them correctly, just as it does for windows dragged partially off the screen to the left.  Removing this function fixed a number of drawing issues including tool tips being incorrectly drawn and windows not being drawn correctly after they'd been placed partially off-screen to the right.
2011-11-02 18:31:14 -05:00
Alan Pearson
4735dcc5c7 Reorder header files. X11 headers need to be before freerdp/types.h otherwise we get warnings about redefinition of True and False 2011-10-27 10:29:16 -07:00
Marc-André Moreau
8df77dba71 libfreerdp-core: move rdpChannels context to rdpContext 2011-10-16 20:10:09 -04:00
Marc-André Moreau
0549380c28 libfreerdp-channels: rename from libfreerdp-chanman 2011-10-16 14:57:15 -04:00
Marc-André Moreau
c639ec8593 libfreerdp-core: refactoring of context pointers into rdpContext 2011-10-16 00:50:10 -04:00
Marc-André Moreau
3869228349 xfreerdp: RemoteApp stabilization (window movement, region update) 2011-09-22 21:23:01 -04:00
Marc-André Moreau
5c25717eae xfreerdp-server: encode a single tile from X11 at a hardcoded position 2011-09-13 19:03:06 -04:00
roman-b
059eff9f56 xfreerdp: fixed "window shake" effect in RAIL Local Move/Size. 2011-09-06 00:25:46 +03:00
roman-b
14ce6ae7f0 xfreerdp: RemoteApp Local Move/Size improvements.
Issues:
fast mouse moving after left button pressing is create "windows shake" effect.
Slow mouse speed after left button press allows to discard this effect.
2011-09-03 23:38:01 +03:00
roman-b
69b4b0318c xfreerdp: fix usage of new DEBUG_ macroses for RAIL and X11 Client. 2011-09-03 19:50:26 +03:00
Marc-André Moreau
6fdecdb01b debug: cleanup printf's all over the place 2011-09-02 13:29:17 -04:00
Marc-André Moreau
e649a68047 xfreerdp: stabilizing RemoteApp 2011-09-02 12:39:56 -04:00
roman-b
9b7eb7934f Merge remote-tracking branch 'upstream/master' into rail 2011-09-02 01:24:45 +03:00
roman-b
3c78705515 xfreerdp: added sending Window Move Order to server. 2011-09-02 01:02:22 +03:00
roman-b
72631d04e1 xfreerdp: added handlers for MinMax and Local Move/Size orders. 2011-09-01 01:02:22 +03:00
Marc-André Moreau
aee51a7e2e xfreerdp: fix after refactoring libfreerdp-rail on windows 2011-08-31 02:01:49 -04:00
Marc-André Moreau
b56962d254 xfreerdp: start handling multiple monitors in xf_monitor.c 2011-08-30 20:59:42 -04:00
Marc-André Moreau
9d7fce9194 xfreerdp: fix listing of RemoteApp windows in taskbar 2011-08-30 15:06:50 -04:00
Marc-André Moreau
a9a06abcc3 xfreerdp: stabilizing RemoteApp, fix window styles 2011-08-30 14:21:16 -04:00
Marc-André Moreau
3f4cd54ad2 xfreerdp: disable RemoteApp mouse motion 2011-08-25 15:05:07 -04:00
Marc-André Moreau
9b40f800de xfreerdp: fix minor RAIL issues 2011-08-25 14:11:45 -04:00
roman-b
16262074d4 xfreerdp: add RAIL windows focus in/out handling. 2011-08-25 01:22:06 +03:00
roman-b
6365db7be6 xfreerdp: add parent-child relationship for RAIL windows. 2011-08-25 00:16:57 +03:00
Marc-André Moreau
cfd3407f69 xfreerdp: fix drawing of maximized RAIL windows 2011-08-22 21:22:05 -04:00
Marc-André Moreau
3e4331caa0 xfreerdp: add support for RemoteApp round window corners 2011-08-22 16:06:12 -04:00
roman-b
8ae5b05c86 Merge remote-tracking branch 'upstream/master' into rail 2011-08-22 19:14:11 +03:00
Marc-André Moreau
900a56f289 xfreerdp: fix window classes 2011-08-21 23:54:02 -04:00
Marc-André Moreau
b8291b2e3d xfreerdp: handling local window restore events 2011-08-21 23:39:56 -04:00
Marc-André Moreau
aaa2f22b10 xfreerdp: handled RAIL window minimize events 2011-08-21 23:15:19 -04:00
Marc-André Moreau
f46d3d51c6 xfreerdp: improved window icon support 2011-08-21 22:30:49 -04:00
roman-b
7744e17ec2 channels/rail: fixed multithread side effect by creating full orders copy for events. 2011-08-22 02:04:21 +03:00
Marc-André Moreau
00733ab128 xfreerdp: started handling RemoteApp icons 2011-08-21 17:32:18 -04:00
roman-b
7b6dad86ca Merge remote-tracking branch 'upstream/master' into rail 2011-08-21 04:44:18 +03:00
roman-b
822c269b06 xfreerdp: small fix. void* pointer does not require type cast. 2011-08-21 04:13:33 +03:00
Marc-André Moreau
4a126a55b0 xfreerdp: handle RAIL window title updates 2011-08-19 22:21:09 -04:00
roman-b
e7367f9aac channel/rail: add initial handling all RAIL PDU from server.
Note:
Sometimes we have multi-thread side effect with data trasfer throught shared 
memory between different threads.
2011-08-20 01:46:10 +03:00
Marc-André Moreau
181154f01f xfreerdp: optimize the updating of invalid regions on RAIL windows 2011-08-19 12:43:44 -04:00
Marc-André Moreau
9e42276d1b Merge pull request #50 from roman-b/rail
Rail
2011-08-19 08:36:57 -07:00
Marc-André Moreau
af71a70233 xfreerdp: fix RAIL window resizing 2011-08-19 11:12:30 -04:00