From dd8610fd5c7af66551a1513f2c1a312814ba9c95 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 25 Aug 2019 20:47:38 +0100 Subject: [PATCH] Don't apply GTK fix to OSX as it causes a hang. Fixes: lp:1841379 * https://bugs.launchpad.net/kicad/+bug/1841379 (cherry picked from commit de8f97be6b638dd066c535c81f19fdeb51b6c747) --- common/view/wx_view_controls.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/view/wx_view_controls.cpp b/common/view/wx_view_controls.cpp index e4d053e830..a61de549b1 100644 --- a/common/view/wx_view_controls.cpp +++ b/common/view/wx_view_controls.cpp @@ -677,8 +677,11 @@ void WX_VIEW_CONTROLS::UpdateScrollbars() m_parentPanel->SetScrollbars( 1, 1, newRange.x, newRange.y, newScroll.x, newScroll.y, true ); m_scrollPos = newScroll; - // Trigger a mouse refresh to get the canvas update in GTK (re-draws the scrollbars) +#ifndef __APPLE__ + // Trigger a mouse refresh to get the canvas update in GTK (re-draws the scrollbars). + // Note that this causes an infinite loop on OSX as it generates a paint event. refreshMouse(); +#endif } }