# Windowed full screen problem on Linux

**URL:** https://discourse.glfw.org/t/windowed-full-screen-problem-on-linux/1693
**Category:** support
**Created:** [November 16, 2020, 8:38pm UTC](https://discourse.glfw.org/t/windowed-full-screen-problem-on-linux/1693 "2020-11-16T20:38:07Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![lefty](https://avatars.discourse-cdn.com/v4/letter/l/85e7bf/32.png) [@lefty](https://discourse.glfw.org/u/lefty)
#### Post date: [November 16, 2020, 8:38pm UTC](https://discourse.glfw.org/t/windowed-full-screen-problem-on-linux/1693/1 "2020-11-16T20:38:07Z")

</div>

I am trying to get windowed fullscreen working on Ubuntu. This is the code I use:  
const GLFWvidmode\* mode = glfwGetVideoMode(glfwGetPrimaryMonitor());  
g\_screenWidth = mode-\>width;  
g\_screenHeight = mode-\>height;  
glfwWindowHint(GLFW\_CONTEXT\_VERSION\_MAJOR, 3);  
glfwWindowHint(GLFW\_CONTEXT\_VERSION\_MINOR, 2);  
glfwWindowHint(GLFW\_OPENGL\_PROFILE, GLFW\_OPENGL\_CORE\_PROFILE);  
glfwWindowHint(GLFW\_OPENGL\_FORWARD\_COMPAT, GL\_TRUE);  
glfwWindowHint(GLFW\_RED\_BITS, 8);  
glfwWindowHint(GLFW\_GREEN\_BITS, 8);  
glfwWindowHint(GLFW\_BLUE\_BITS, 8);  
glfwWindowHint(GLFW\_ALPHA\_BITS, 0);  
glfwWindowHint(GLFW\_DEPTH\_BITS, 32);  
glfwWindowHint(GLFW\_STENCIL\_BITS, 8);  
glfwWindowHint(GLFW\_RESIZABLE, GL\_FALSE);  
glfwWindowHint(GLFW\_DECORATED, GL\_FALSE);  
g\_pWindow = glfwCreateWindow(g\_screenWidth, g\_screenHeight, “”, NULL, NULL);

This works fine under Windows, however on Ubuntu, it places the window incorrectly, to the right of the dock menu. It also ignores the setting GLFW\_DECORATED and creates a menu anyway. The result is that the windows right and bottom edges are not visible.  
Does anyone know of a solution for this?

---

<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: [November 17, 2020, 11:59am UTC](https://discourse.glfw.org/t/windowed-full-screen-problem-on-linux/1693/2 "2020-11-17T11:59:17Z")

</div>

What version of GLFW are you using?

Note that [we have seen an issue with undecorated windows and some X11 implementations](https://github.com/glfw/glfw/issues/1741).

Note that it can be tricky to get a ‘true’ windowed fullscreen OpenGL app working, as many drivers recognise a window the size of the monitor as a fullscreen output and trigger a change to fullscreen handling.

---

<div class="post-metadata">

### Author: ![lefty](https://avatars.discourse-cdn.com/v4/letter/l/85e7bf/32.png) [@lefty](https://discourse.glfw.org/u/lefty)
#### Post date: [November 17, 2020, 11:11pm UTC](https://discourse.glfw.org/t/windowed-full-screen-problem-on-linux/1693/3 "2020-11-17T23:11:14Z")

</div>

Thanks for the answer.  
I am using the latest version. Anyway, I discovered that on Linux the "fullscreen excusive " mode can switch quickly between apps, unlike in Windows, so I used that instead.
