win32-vd_agent/vdagent
Uri Lublin 5edf7433a4 handle_mouse_event: fix off-by-one when normalizing mouse coordinates
Mouse coordinates can be 0..(width-1) and 0..(height-1)

Normalization of mouse coordinates (for SendInput) was done
against w,h and thus right-most and down-most coordinates
could never be reached.

Fix it by normalizing against (w-1) and (h-1).

Also added protection against a case of 0 or 1 (for any of w,h)
Fixes rhbz#1032037
2016-05-05 11:47:20 +03:00
..
as_user.cpp vdagent: as_user: reorder initialization to make mingw-gcc happy 2014-12-30 17:17:24 +02:00
as_user.h vdagent: add as_user to run tasks with user privileges 2013-11-13 10:24:59 +02:00
desktop_layout.cpp Check for set-monitors-position capability from client. 2015-08-06 12:01:45 +02:00
desktop_layout.h Check for set-monitors-position capability from client. 2015-08-06 12:01:45 +02:00
display_setting.cpp Fix cast BOOL->PVOID warning 2013-07-17 20:52:17 +02:00
display_setting.h mingw: use const char * in DisplaySetting() 2012-03-01 12:59:05 +01:00
file_xfer.cpp vdagent-win: Fix compile under MingW 2015-04-30 14:01:01 +02:00
file_xfer.h Use wide characters in drap&drop code 2015-04-30 13:21:48 +02:00
resource.h fresh start 2009-11-05 13:02:54 +02:00
vdagent.cpp handle_mouse_event: fix off-by-one when normalizing mouse coordinates 2016-05-05 11:47:20 +03:00
vdagent.rc vdagent: add win7 support to service for launching agent 2009-12-23 15:31:01 +02:00
vdagent.vcproj vdagent: add as_user to run tasks with user privileges 2013-11-13 10:24:59 +02:00