Index: remoting/host/event_executor_win.cc |
=================================================================== |
--- remoting/host/event_executor_win.cc (revision 57860) |
+++ remoting/host/event_executor_win.cc (working copy) |
@@ -7,6 +7,7 @@ |
#include <windows.h> |
#include "base/keyboard_codes.h" |
#include "base/stl_util-inl.h" |
+#include "remoting/host/capturer.h" |
namespace remoting { |
@@ -347,7 +348,8 @@ |
} |
} |
-EventExecutorWin::EventExecutorWin() { |
+EventExecutorWin::EventExecutorWin(Capturer* capturer) |
+ : EventExecutor(capturer) { |
} |
EventExecutorWin::~EventExecutorWin() { |
@@ -381,6 +383,17 @@ |
int width = msg->mouse_set_position_event().width(); |
int height = msg->mouse_set_position_event().height(); |
+ // Get width and height from the capturer if they are missing from the |
+ // message. |
+ if (width == 0 || height == 0) { |
+ width = capturer_->width(); |
+ height = capturer_->height(); |
+ } |
+ if (width == 0 || height == 0) { |
+ return; |
+ } |
+ |
+ |
INPUT input; |
input.type = INPUT_MOUSE; |
input.mi.time = 0; |