GDK W32: Fix dragging AeroSnap application

The original patch for commit b420c53773
was applied incorrectly, doing the actual snapping in the wrong place.
Move the code.
This commit is contained in:
Руслан Ижбулатов 2016-06-05 07:37:02 +00:00
parent b42d4b5b9a
commit bd86715ed3

View File

@ -4646,11 +4646,6 @@ setup_drag_move_resize_context (GdkWindow *window,
context->op, context->edge, context->device,
context->button, context->start_root_x,
context->start_root_y, context->timestamp));
if (context->current_snap != GDK_WIN32_AEROSNAP_STATE_UNDETERMINED)
apply_snap (window, context->current_snap);
context->current_snap = GDK_WIN32_AEROSNAP_STATE_UNDETERMINED;
}
void
@ -4701,6 +4696,11 @@ gdk_win32_window_end_move_resize_drag (GdkWindow *window)
context->op, context->edge, context->device,
context->button, context->start_root_x,
context->start_root_y, context->timestamp));
if (context->current_snap != GDK_WIN32_AEROSNAP_STATE_UNDETERMINED)
apply_snap (window, context->current_snap);
context->current_snap = GDK_WIN32_AEROSNAP_STATE_UNDETERMINED;
}
void