diff --git a/src/C4Viewport.cpp b/src/C4Viewport.cpp index 3b8ccee5f..0f15a62ff 100644 --- a/src/C4Viewport.cpp +++ b/src/C4Viewport.cpp @@ -542,7 +542,7 @@ gboolean C4ViewportWindow::OnButtonPressStatic(GtkWidget *widget, GdkEventButton switch (event->button) { case 1: - Console.EditCursor.LeftButtonDown(event->state & MK_CONTROL); + Console.EditCursor.LeftButtonDown(window->cvp->GetViewSection(), event->state & MK_CONTROL); break; case 3: Console.EditCursor.RightButtonDown(event->state & MK_CONTROL); @@ -577,10 +577,10 @@ gboolean C4ViewportWindow::OnButtonReleaseStatic(GtkWidget *widget, GdkEventButt switch (event->button) { case 1: - Console.EditCursor.LeftButtonUp(); + Console.EditCursor.LeftButtonUp(window->cvp->GetViewSection()); break; case 2: - Console.EditCursor.MiddleButtonUp(); + Console.EditCursor.MiddleButtonUp(window->cvp->GetViewSection()); break; case 3: Console.EditCursor.RightButtonUp(); @@ -603,7 +603,7 @@ gboolean C4ViewportWindow::OnMotionNotifyStatic(GtkWidget *widget, GdkEventMotio { const auto scale = Application.GetScale(); - Console.EditCursor.Move(window->cvp->ViewX + static_cast(event->x / scale), window->cvp->ViewY + static_cast(event->y / scale), event->state); + Console.EditCursor.Move(window->cvp->GetViewSection(), window->cvp->ViewX + static_cast(event->x / scale), window->cvp->ViewY + static_cast(event->y / scale), event->state); } return TRUE;