#GLFW can't detect fullscreen
75 messages ยท Page 1 of 1 (latest)
hmm
i just use glfwGetPrimaryMonitor()
and from the monitor, glfwGetVideoMode
hmmm i might not understand the question
what are you actually trying to do?
@dark reef
usually you keep track of your application state, ie set the window to fullscreen or not, there is no api which retrieves that information for you
@violet geyser im trying to detect whether the window is in fullscreen
According to this (https://www.glfw.org/docs/3.3/window_guide.html#window_monitor), glfwGetWindowMonitor should tell me that.
But the function always returns a result, even for windowed windows, when it should return null.
So I cant use it for that
and I can't keep track of it myself since the OS might make my window fullscreen or not fullscreen
just an app with a fullscreen toggle
wdym how
if you are in control of the app, then you decide when to go into fullscreen and when you get out of it
store that value in a bool
@violet geyser the operating system can resize apps without the app knowing
and toggling fullscreen
so that wont work
when is that happening?
^^^
wdym when
whenever the user wants to
ive never seen that in my life
no window is magically unfullscreening or going fullscreen
well not magically, just when a user presses a shortcut
no
im not lying you know
that is also application driven
no ....
alt+f11 for instance
a common shortcut for that sort of thing
but the APP controls that, not the os
can you explain how I can use shortcuts to toggle fullscreen then without programming keyboard input into my app
is english your native language? or am i speaking chinese
you need to add code obviously to handle keypresses if you want to react to those
Just because youve never seen an OS control it doesnt mean its not real
show me, then
are you seriously saying I'm lying?
Have you only ever used Windows
no?
did you just assume my OS? ๐
yes :)
ok let me ask you something else then
when you say "fullscreen" what exactly do you mean by that
just maximized normal window or borderless window which has the same dimensions like the screen
same dimensions
oki
if glfw doesnt want to cooperate, maybe you can grab the current videomode (width/height) and also current framebuffer width/height and compare those
and when they are the same, you could assume its fullscreen
potentially also compare left/top of both
indeed
because its so popular
perhaps its a bug, one could check glfw's sources
checking whether a window is fullscreen or not is most likely not a popular use case
or maybe glfw authors didnt know that the OS can change it
ยฏ_(ใ)_/ยฏ
so they just keep track of the state themselves
Toggle fullscreen mode = disabled ๐ for a good reason