I am trying to create 2 windows, each on a separate monitor where one window is full screen and the other is not full screen.
It appears that when I create the secondary window the compositor starts to manage also my full screen window.
Is it possible to bypass the compositor on one window(monitor) and not on a second window(monitor)?
Below is the code I use to create the windows:
int openGlSyncMode = 1;
if (glfwGetPrimaryMonitor() == monitor)
{
glfwWindow = glfwCreateWindow(videoMode->width, videoMode->height, "Primary", monitor, nullptr);
}
else
{
openGlSyncMode = 0;
glfwWindow = glfwCreateWindow(videoMode->width, videoMode->height, "Secondary",nullptr, nullptr);
int xpos, ypos;
glfwGetMonitorPos(monitor, &xpos, &ypos);
glfwSetWindowMonitor(glfwWindow, nullptr, xpos, ypos, videoMode->width-1,videoMode->height, videoMode->refreshRate);
}
glfwMakeContextCurrent(glfwWindow);
glfwSwapInterval(openGlSyncMode);