# Creating windowed fullscreen

**URL:** https://discourse.glfw.org/t/creating-windowed-fullscreen/825
**Category:** support
**Created:** [December 21, 2016, 5:00am UTC](https://discourse.glfw.org/t/creating-windowed-fullscreen/825 "2016-12-21T05:00:12Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![bsy6766](https://avatars.discourse-cdn.com/v4/letter/b/dbc845/32.png) [@bsy6766](https://discourse.glfw.org/u/bsy6766)
#### Post date: [December 21, 2016, 5:00am UTC](https://discourse.glfw.org/t/creating-windowed-fullscreen/825/1 "2016-12-21T05:00:12Z")

</div>

GLFW version: latest from github  
Using Cocos2d-X on Windows 10

Hello everyone,

tldr: What is a proper way to create a Windowed Fullscreen (Borderless Fullscreen) window?

So far, I have no problem creating both Fullscreen and Windowed mode windows. It was easy enough and straight forward.

But for Windowed Fullscreen, I’m little confused.

I read the Window guide for more information but wasn’t sure what ‘To create such a window, simply request the current video mode’ what exactly means. No matter what I did with video mode, I ended up creating either Fullscreen on full sized Windowed window with window border.

Also I saw the ‘iconify’ and ‘window’ test codes, but wasn’t able to find any test for Windowed Fullscreen.

So after messing around with code, I ended up creating window as Windowed (monitor == nullptr) then disabled GLFW\_DECORATED to make borderless.  
The result was fine, worked as I expected, but want to make sure if this is a right way to make one or want to know if I’m missing something.

---

<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: [December 21, 2016, 9:47am UTC](https://discourse.glfw.org/t/creating-windowed-fullscreen/825/2 "2016-12-21T09:47:03Z")

</div>

See [the documentation on Windowed full screen windows](http://www.glfw.org/docs/latest/window_guide.html#window_windowed_full_screen).

Note that the only difference between a “windowed full screen” and “fullscreen” window here is that the monitors video mode hasn’t changed - just make sure you get the full mode details of the desktop mode and then set that.

---

<div class="post-metadata">

### Author: ![bsy6766](https://avatars.discourse-cdn.com/v4/letter/b/dbc845/32.png) [@bsy6766](https://discourse.glfw.org/u/bsy6766)
#### Post date: [January 13, 2017, 10:40pm UTC](https://discourse.glfw.org/t/creating-windowed-fullscreen/825/3 "2017-01-13T22:40:22Z")

</div>

Thanks for reply

Now I think I kinda get what video modes are, but I’m still confused with Windowed Fullscreen.

According to “Windowed full screen” guide, it says

```
const GLFWvidmode* mode = glfwGetVideoMode(monitor);

glfwWindowHint(GLFW_RED_BITS, mode->redBits);
glfwWindowHint(GLFW_GREEN_BITS, mode->greenBits);
glfwWindowHint(GLFW_BLUE_BITS, mode->blueBits);
glfwWindowHint(GLFW_REFRESH_RATE, mode->refreshRate);

GLFWwindow* window = glfwCreateWindow(mode->width, mode->height, "My Title", monitor, NULL);

```

If I create window like this, I get Fullscreen. Window gets minimized when focus is lost. If I disable GLFW\_AUTO\_ICONIFY, it seems like Windowed Fullscreen but the window always stays on highest level (can’t be overlapped or topped by other windows), which is not what Windowed Fullscreen should be.

I guess it’s obvious because monitor is not NULL, which means it’s “Fullscreen” not “Windowed”, but if I set monitor to NULL, then I get fullscreen-sized decorated window(bordered with title). I have to set GLFW\_DECORATED to false in order to make it Windowed Fullscreen like I posted earlier.

So is the guide above wrong or am I? I think I’m overthinking with Windowed Fullscreen, but really want to know thoroughly.

---

<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: [January 14, 2017, 2:19pm UTC](https://discourse.glfw.org/t/creating-windowed-fullscreen/825/4 "2017-01-14T14:19:45Z")

</div>

Windowed fullscreen is topmost by design, this is how it should be. The guide is correct. Windowed fullscreen acts as a fullscreen window but without a mode change allowing faster and more stable task switching.

If you want more control over your window, then you need to use a standard window as you’ve found.

---

<div class="post-metadata">

### Author: ![bsy6766](https://avatars.discourse-cdn.com/v4/letter/b/dbc845/32.png) [@bsy6766](https://discourse.glfw.org/u/bsy6766)
#### Post date: [January 16, 2017, 6:36pm UTC](https://discourse.glfw.org/t/creating-windowed-fullscreen/825/5 "2017-01-16T18:36:09Z")

</div>

I see…now everything make sense now 🙂

Thanks for all the help!
