From de8f97be6b638dd066c535c81f19fdeb51b6c747 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 --- 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 1fc6e0d3d2..6bb61632d6 100644 --- a/common/view/wx_view_controls.cpp +++ b/common/view/wx_view_controls.cpp @@ -704,8 +704,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 } }