Skip to content

Commit

Permalink
allow sharing
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch authored and jayschwa committed May 24, 2018
1 parent a245606 commit 899df53
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/glfw3.jl
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,8 @@ function Window(
visible = true,
focus = false,
fullscreen = false,
monitor = nothing
monitor = nothing,
share = Window(C_NULL)
)
WindowHint(VISIBLE, visible)
WindowHint(FOCUSED, focus)
Expand Down Expand Up @@ -321,7 +322,7 @@ function Window(
error("Monitor needs to be nothing, int, or GLFW.Monitor. Found: $monitor")
end

window = CreateWindow(resolution..., String(name))
window = CreateWindow(resolution..., String(name), Monitor(C_NULL), share)

if fullscreen
SetKeyCallback(window, (_1, button, _2, _3, _4) -> begin
Expand Down

0 comments on commit 899df53

Please sign in to comment.