# Removing the top title bar

**URL:** <https://discourse.glfw.org/t/removing-the-top-title-bar/2439>\
**Category:** support\
**Created:** [August 22, 2023, 4:35pm UTC](https://discourse.glfw.org/t/removing-the-top-title-bar/2439 "2023-08-22T16:35:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bipul-mohanto](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/bipul-mohanto/32/627_2.png) [@bipul-mohanto](https://discourse.glfw.org/u/bipul-mohanto)\
**Post date:** [August 22, 2023, 4:35pm UTC](https://discourse.glfw.org/t/removing-the-top-title-bar/2439/1 "2023-08-22T16:35:28Z")

</div>

Hi!

Is there any way I can totally remove/disable the `glfw` top title bar section? [Not like this post](https://discourse.glfw.org/t/remove-window-title-bar-but-save-frame-e-t-c/1350), I want the whole title bar portion is gone thus I can make the window `int x_min=0, int y_min = 0, int x_max = 3840, int y_max = 2160`. I am using code:

```cpp
glfwWindowHint( GLFW_CONTEXT_VERSION_MAJOR, 3 );
glfwWindowHint( GLFW_CONTEXT_VERSION_MINOR, 3 );
glfwWindowHint( GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE ); // To make Apple happy -- should not be needed
glfwWindowHint( GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE );

window = glfwCreateWindow( width, height, window_title, nullptr, nullptr); // NULL = nullptr // this was previous code line
//window = glfwCreateWindow( width, height, window_title, glfwGetPrimaryMonitor(), nullptr); // NULL = nullptr
if( !window )
    throw Exception( "Failed to create GLFW window" );

glfwMakeContextCurrent( window );
glfwSwapInterval( 0 ); // No vsync

return window;
   
}

```

 ![GLFW.PNG](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/cf3bbb84147ac6d8a7acd3313950f12a654e0f00.jpeg)

---

<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:** [August 22, 2023, 5:27pm UTC](https://discourse.glfw.org/t/removing-the-top-title-bar/2439/2 "2023-08-22T17:27:32Z")

</div>

You can do this by setting the window hint `GLFW_DECORATED` to false with:

```auto
glfwWindowHint( GLFW_DECORATED, GLFW_FALSE );

```

before you create the window.

---

<div class="post-metadata">

**Author:** ![recallmenot](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/recallmenot/32/803_2.png) [@recallmenot](https://discourse.glfw.org/u/recallmenot)\
**Post date:** [August 23, 2023, 5:31am UTC](https://discourse.glfw.org/t/removing-the-top-title-bar/2439/3 "2023-08-23T05:31:39Z")

</div>

so search indexers can easily find this, as I think this can also be called:  
glfw borderless fullscreen  
glfw borderless window  
[https://www.glfw.org/docs/latest/window\_guide.html](https://www.glfw.org/docs/latest/window_guide.html)  
On that site, you can find the description for the hint and a section called `"Windowed full screen" windows` which could be useful to you.

---

<div class="post-metadata">

**Author:** ![bipul-mohanto](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/bipul-mohanto/32/627_2.png) [@bipul-mohanto](https://discourse.glfw.org/u/bipul-mohanto)\
**Post date:** [August 23, 2023, 12:52pm UTC](https://discourse.glfw.org/t/removing-the-top-title-bar/2439/4 "2023-08-23T12:52:43Z")

</div>

Thanks @dougbinks @recallmenot !

I did the following (windows 10, x64):

```cpp
GLFWwindow* full_initGLFW(const char* window_title, int width, int height) {
    glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
    glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
    glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
    glfwWindowHint(GLFW_DECORATED, GLFW_FALSE); // no effect
    
    GLFWmonitor* primary = glfwGetPrimaryMonitor();
    const GLFWvidmode* mode = glfwGetVideoMode(primary);
    glfwWindowHint(GLFW_VISIBLE, GLFW_FALSE);

    GLFWwindow* window = glfwCreateWindow(3840, 2160, "title", primary, NULL);
    glfwSetWindowMonitor(window, primary, 0, 0, mode->width, mode->height, GLFW_DONT_CARE /*mode->refreshRate*/);
    glfwMakeContextCurrent(window);

    gladLoadGLLoader((GLADloadproc)glfwGetProcAddress);
    glViewport(0, 0, mode->width, mode->height);
    glfwShowWindow(window);

     return window;
}

```

It is creating the `full screen` window. However, I have three monitors. While the `full-screen window` is on, if I click or try to do anything else on another two monitors, the `full-screen window` immediately gets minimized. I want the window be there that I can take some screen shot or screen capture. If I use

```cpp
window = glfwCreateWindow( width, height, window_title, glfwGetPrimaryMonitor(), nullptr);

```

that is also working, but same problem. If I click on other monitors, the window gets minimized immediately.

---

<div class="post-metadata">

**Author:** ![bipul-mohanto](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/bipul-mohanto/32/627_2.png) [@bipul-mohanto](https://discourse.glfw.org/u/bipul-mohanto)\
**Post date:** [August 23, 2023, 1:10pm UTC](https://discourse.glfw.org/t/removing-the-top-title-bar/2439/5 "2023-08-23T13:10:51Z")

</div>

Okay, problem solved from @dougbinks old answer: [Fullscreen minimizes on clicking on another monitor - support - GLFW](https://discourse.glfw.org/t/fullscreen-minimizes-on-clicking-on-another-monitor/1451/2)
