# Borderless window flickers on focus change

**URL:** <https://discourse.glfw.org/t/borderless-window-flickers-on-focus-change/100>\
**Category:** support\
**Created:** [October 19, 2014, 6:42pm UTC](https://discourse.glfw.org/t/borderless-window-flickers-on-focus-change/100 "2014-10-19T18:42:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [October 19, 2014, 6:42pm UTC](https://discourse.glfw.org/t/borderless-window-flickers-on-focus-change/100/1 "2014-10-19T18:42:29Z")

</div>

**[gibgezr](https://sourceforge.net/u/gibgezr/)** wrote on [Sunday, October 19, 2014](https://sourceforge.net/p/glfw/discussion/247562/thread/ebc5ffbf/#9ea2):

I am creating a window like so:

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

            window = glfwCreateWindow(mode->width, mode->height, "SomeWindow", NULL, NULL);

```

When the user changes focus, this window flickers (just for an instant).  
I am guessing this is related to either vsync or aero (I’m using Windows).  
It’s not a huge deal, but is there any way to prevent it?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [October 20, 2014, 11:53pm UTC](https://discourse.glfw.org/t/borderless-window-flickers-on-focus-change/100/2 "2014-10-20T23:53:22Z")

</div>

**[elmindreda](https://sourceforge.net/u/elmindreda/)** wrote on [Monday, October 20, 2014](https://sourceforge.net/p/glfw/discussion/247562/thread/ebc5ffbf/#fb8b):

The refresh rate hint does not apply to windowed mode windows. Are you trying to create a full screen window?
