# Fullscreen window mode, but not the current way

**URL:** https://discourse.glfw.org/t/fullscreen-window-mode-but-not-the-current-way/2595
**Category:** support
**Created:** [April 10, 2024, 5:53am UTC](https://discourse.glfw.org/t/fullscreen-window-mode-but-not-the-current-way/2595 "2024-04-10T05:53:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![xzores](https://avatars.discourse-cdn.com/v4/letter/x/779978/32.png) [@xzores](https://discourse.glfw.org/u/xzores)
#### Post date: [April 10, 2024, 5:53am UTC](https://discourse.glfw.org/t/fullscreen-window-mode-but-not-the-current-way/2595/1 "2024-04-10T05:53:09Z")

</div>

Hello, I would like to remove the borders on my window, set the windows position to be (0,0) and the size to be (screen\_width, screen\_heigth).  
This will be almost the same as setting the so called “Windowed fullscreen”, but it is a little different because here the mouse can exit the screen.  
I really want this behavior, but I do not know if I can do it after window creation. I know I can do it before window creation be setting GLFW\_DECORATED.  
So someone talked about recreating the window, but keeping the opengl context alive. Is this possiable today?

---

<div class="post-metadata">

### Author: ![dougbinks](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/dougbinks/32/39_2.png) [@dougbinks](https://discourse.glfw.org/u/dougbinks)
#### Post date: [April 10, 2024, 10:48am UTC](https://discourse.glfw.org/t/fullscreen-window-mode-but-not-the-current-way/2595/2 "2024-04-10T10:48:27Z")

</div>

Hi @xzores and welcome to the GLFW forum,

This sounds very similar to what GLFW actually does when you set the window to be fullscreen at the current monitors video mode.

Note that depending on your driver / OS / window system this may end up triggering exclusive fullscreen mode, as in OpenGL the client application does not have control over this. Simply setting a window which exactly covers the monitor is normally the trigger for fullscreen behaviour. A trick to get around this is to make the window slightly larger in a direction which does not overlap with other monitors (if possible).

The decorated status is both a window creation hint and window attribute, so can be changed after window creation via the [glfwSetWindowAttrib](https://www.glfw.org/docs/latest/window_guide.html#window_attribs) function.

---

<div class="post-metadata">

### Author: ![xzores](https://avatars.discourse-cdn.com/v4/letter/x/779978/32.png) [@xzores](https://discourse.glfw.org/u/xzores)
#### Post date: [April 17, 2024, 6:42am UTC](https://discourse.glfw.org/t/fullscreen-window-mode-but-not-the-current-way/2595/3 "2024-04-17T06:42:57Z")

</div>

Ahh, thank you very much glfwGetWindowAttrib seems to what I was looking for.
