Edit: Just a typo - ignore. How to specify GLMakie to display window in full screen mode?

Hello,

I would like to specify GLMakie to display the window in full screen mode.

A search of Makie Issues gave the following accepted solution:

However, when I implement this proposed solution in a MWE as below
the displayed image is not full screen.

# test_GLMakie_fullscreen.jl

using ModernGL
using GLMakie

GLMakie.activate!()

screen_resolution = Makie.primary_resolution()
println("screen_resolution: ", screen_resolution)

figure = Figure(resoluton=screen_resolution)
axis = Axis(figure[1, 1])

lines!(axis, 0..10, sin)

display(figure)

Although the reported screen resolution is correct

screen_resolution: (1920, 1080)

the image displayed has dimensions of (802, 632)

Makie: v0.17.8
GLMakie: v0.6.8
julia> versioninfo()
Julia Version 1.7.3
Commit 742b9abb4d (2022-05-06 12:58 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-12.0.1 (ORCJIT, skylake)

Your version of GLMakie appears to be very old, the latest is 0.6.8. Perhaps a package upgrade will help here?

Edit: however, even with 0.6.5 I see the same behaviour (on Linux) as you, the window doesn’t show in the specified resolution.

Sorry for the misdirection, my current GLMakie version is 0.6.8. as given by Pkg.status(“GLMakie”).

I had quoted the last release version at Github GLMakie previously.

Thanks for confirming the issue on Linux.

Typo. Spell “resolution” in

figure = Figure(resolution=screen_resolution)

correctly. Carried over from project to MWE.

Need new bifocals.