[gtk+] GDK W32: Fix dragging AeroSnap application
- From: Руслан Ижбулатов <ruslanizhb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GDK W32: Fix dragging AeroSnap application
- Date: Sun, 5 Jun 2016 09:01:20 +0000 (UTC)
commit bd86715ed3e8dec5caab605fa3afc04ce013906a
Author: Руслан Ижбулатов <lrn1986 gmail com>
Date: Sun Jun 5 07:37:02 2016 +0000
GDK W32: Fix dragging AeroSnap application
The original patch for commit b420c53773ca5119afb43f0f351cb8f33c2bcaf9
was applied incorrectly, doing the actual snapping in the wrong place.
Move the code.
gdk/win32/gdkwindow-win32.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c
index 6668cd6..20ca3c3 100644
--- a/gdk/win32/gdkwindow-win32.c
+++ b/gdk/win32/gdkwindow-win32.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]