# Start GLMakie visualization in previous position with previous size

**URL:** <https://discourse.julialang.org/t/start-glmakie-visualization-in-previous-position-with-previous-size/94132>\
**Category:** Visualization\
**Tags:** makie, glmakie\
**Created:** [February 6, 2023, 11:14am UTC](https://discourse.julialang.org/t/start-glmakie-visualization-in-previous-position-with-previous-size/94132 "2023-02-06T11:14:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![airpmb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/airpmb/32/7826_2.png) [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Post date:** [February 13, 2023, 9:33pm UTC](https://discourse.julialang.org/t/start-glmakie-visualization-in-previous-position-with-previous-size/94132/2 "2023-02-13T21:33:57Z")

</div>

Have you tried the `focus_on_show` and `resolution` arguments to `GLMakie.Screen`?

```julia
using GLMakie
GLMakie.Screen(; resolution=(1000, 500), focus_on_show=true)

```

I’ve been wanting to figure out the other things you mention and I think I’ve got it:

```julia
s = GLMakie.Screen()
glw = s.glscreen
cursize = GLMakie.GLFW.GetWindowSize(glw)
GLMakie.GLFW.SetWindowSize(glw, 1000, 100)
# resize the window manually..
GLMakie.GLFW.SetWindowSize(glw, cursize...) # goes back

```

There’s a `GetWindowSize` and `SetWindowPos` that work the same. On MacOS at least, this position seems to be on the extended desktop when there are multiple monitors.

BTW I figured this stuff out by entering `GLMakie.GLFW.` and then tab-completing to discover what was there. I guess one should probably read the actual [docs](https://github.com/JuliaGL/GLFW.jl) but they largely point to the GLFW documentation.

---

_[View the full topic](https://discourse.julialang.org/t/start-glmakie-visualization-in-previous-position-with-previous-size/94132)._
