context->button = button;
context->start_root_x = root_x;
context->start_root_y = root_y;
+ context->current_root_x = root_x;
+ context->current_root_y = root_y;
context->timestamp = timestamp;
context->start_rect = rect;
if (!_gdk_win32_get_window_rect (window, &rect))
return;
+ if (context->current_root_x == x &&
+ context->current_root_y == y)
+ return;
+
+ context->current_root_x = x;
+ context->current_root_y = y;
+
new_rect = context->start_rect;
diffx = (x - context->start_root_x) * impl->surface_scale;
diffy = (y - context->start_root_y) * impl->surface_scale;
int start_root_x;
int start_root_y;
+ /* Last processed cursor position. Values are divided by the window
+ * scale.
+ */
+ int current_root_x;
+ int current_root_y;
+
/* Initial window rectangle (position and size).
* The window is resized/moved relative to this (see start_root_*).
*/