Windowed full screen problem on Linux

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?

What version of GLFW are you using?

Note that we have seen an issue with undecorated windows and some X11 implementations.

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.

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.