Borderless window flickers on focus change

gibgezr wrote on Sunday, October 19, 2014:

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?

elmindreda wrote on Monday, October 20, 2014:

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