Skip to content

Commit

Permalink
FIX: call event loop at least once on VIEW/NO-WAIT.
Browse files Browse the repository at this point in the history
  • Loading branch information
dockimbel committed Jun 6, 2017
1 parent 1b88d0c commit b2ad73c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/view/view.red
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,12 @@ view: function [
unless spec/offset [center-face spec]
show spec

either no-wait [spec][do-events ()] ;-- return unset! value by default
either no-wait [
do-events/no-wait
spec ;-- return root face
][
do-events () ;-- return unset! value by default
]

]

Expand Down

1 comment on commit b2ad73c

@dockimbel
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This gives a chance for the displayed window to process some late messages (fixes a black window content on macOS).

Please sign in to comment.