Skip to content

Commit

Permalink
empty! the GLMakie screen for reuse instead of closeing and reope…
Browse files Browse the repository at this point in the history
…ning

This fixes a problem observed on Linux (across at least a couple of
different desktop environments) with windows flashing away and coming
back in a different place (can be a different monitor!) when reusing the
shared singleton screen.
  • Loading branch information
jmert committed May 22, 2024
1 parent f44c4a5 commit aabb054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GLMakie/src/screen.jl
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ function singleton_screen(debugging::Bool)
if !isempty(SINGLETON_SCREEN)
@debug("reusing singleton screen")
screen = SINGLETON_SCREEN[1]
close(screen; reuse=false)
empty!(screen)
else
@debug("new singleton screen")
# reuse=false, because we "manually" re-use the singleton screen!
Expand Down

0 comments on commit aabb054

Please sign in to comment.