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 de8f97be6b)
This commit is contained in:
Jeff Young 2019-08-25 20:47:38 +01:00
parent b991beb712
commit dd8610fd5c
1 changed files with 4 additions and 1 deletions

View File

@ -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
}
}