# Cannot manage to create borderless windowed form

**URL:** <https://discourse.glfw.org/t/cannot-manage-to-create-borderless-windowed-form/1592>\
**Category:** support\
**Created:** [June 28, 2020, 1:27pm UTC](https://discourse.glfw.org/t/cannot-manage-to-create-borderless-windowed-form/1592 "2020-06-28T13:27:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ModderGhost](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@ModderGhost](https://discourse.glfw.org/u/ModderGhost)\
**Post date:** [June 28, 2020, 1:27pm UTC](https://discourse.glfw.org/t/cannot-manage-to-create-borderless-windowed-form/1592/1 "2020-06-28T13:27:02Z")

</div>

I came up with weird behavior when creating borderless windowed form (I’m using windows). Whenever i set window width & height to current desktop one glfw transforms window to partial-fullscreen, tabbing to window makes it blink & tabbing out does not show tab menu or anything, like on fullscreen (When im tabbed out window is shown as it should be). If i set window width and height to any other size it works perfectly. (GLFW\_DECORATED is disabled and monitor is set to NULL while creating the window)

---

<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:** [June 28, 2020, 2:44pm UTC](https://discourse.glfw.org/t/cannot-manage-to-create-borderless-windowed-form/1592/2 "2020-06-28T14:44:38Z")

</div>

Hi, welcome to the GLFW forum.

The windows code for setting the size in GLFW is as follows:

> <https://github.com/glfw/glfw/blob/master/src/win32_window.c#L1533-L1549>

This doesn’t do anything special about creating a fullscreen window, however the display driver may optimize a fullscreen windowed application by [using a direct flip rather than composition](https://docs.microsoft.com/en-gb/windows-hardware/drivers/display/direct-flip-of-video-memory?redirectedfrom=MSDN).

EDIT: Just to clarify what I mean by this is that the issue you have is likely due to the OS/driver.

---

<div class="post-metadata">

**Author:** ![ModderGhost](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@ModderGhost](https://discourse.glfw.org/u/ModderGhost)\
**Post date:** [June 28, 2020, 2:54pm UTC](https://discourse.glfw.org/t/cannot-manage-to-create-borderless-windowed-form/1592/3 "2020-06-28T14:54:12Z")

</div>

> [@dougbinks](#):
>
> EDIT: Just to clarify what I mean by this is that the issue you have is likely due to the OS/driver.

Then why this is not happening in other programs/games.

---

<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:** [June 28, 2020, 5:38pm UTC](https://discourse.glfw.org/t/cannot-manage-to-create-borderless-windowed-form/1592/4 "2020-06-28T17:38:39Z")

</div>

DirectX apps have control over the swapchain.

This also effects other OpenGL frameworks:

> <https://github.com/SFML/SFML/issues/1284>
>
> sf::Style::None works at exclusive fullscreen mode as in sf::Style::Fullscreen when resolution is at max. It works as windowed at smaller resolutions.
> Skype's...

A workaround for OpenGL is to set a width or height 1 pixel more than that of the current monitor mode.

---

<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:** [June 28, 2020, 6:50pm UTC](https://discourse.glfw.org/t/cannot-manage-to-create-borderless-windowed-form/1592/5 "2020-06-28T18:50:54Z")

</div>

There is some further explanation of this [in the reply to the issue ‘Choosing between normal fullscreen and windowed fullscreen mode’](https://github.com/glfw/glfw/issues/1036#issuecomment-311498678).

---

<div class="post-metadata">

**Author:** ![elmindreda](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/elmindreda/32/26_2.png) [@elmindreda](https://discourse.glfw.org/u/elmindreda)\
**Post date:** [June 28, 2020, 6:59pm UTC](https://discourse.glfw.org/t/cannot-manage-to-create-borderless-windowed-form/1592/6 "2020-06-28T18:59:31Z")

</div>

(These undefined “ways” in that issue is the `WGL_SWAP_METHOD_ARB` attribute in the `WGL_ARB_pixel_format` extension.)
