Skip to content

Commit 75aa143

Browse files
committed
BUG: Force osx canvas to flush events on draw() (Fixes #9491)
draw() needs to ensure events are flushed before returning, so do so (that's the difference between draw and draw_idle). It turns out flush_event wasn't being used up to this point.
1 parent 90a5395 commit 75aa143

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/backends/backend_macosx.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ def _draw(self):
104104

105105
def draw(self):
106106
self.invalidate()
107+
self.flush_events()
107108

108109
def draw_idle(self, *args, **kwargs):
109110
self.invalidate()

0 commit comments

Comments
 (0)