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?