# Mixing full screen and none full screen windows on Ubuntu

**URL:** <https://discourse.glfw.org/t/mixing-full-screen-and-none-full-screen-windows-on-ubuntu/1931>\
**Category:** support\
**Created:** [October 26, 2021, 12:52pm UTC](https://discourse.glfw.org/t/mixing-full-screen-and-none-full-screen-windows-on-ubuntu/1931 "2021-10-26T12:52:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShacharDev](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/shachardev/32/542_2.png) [@ShacharDev](https://discourse.glfw.org/u/ShacharDev)\
**Post date:** [October 26, 2021, 12:52pm UTC](https://discourse.glfw.org/t/mixing-full-screen-and-none-full-screen-windows-on-ubuntu/1931/1 "2021-10-26T12:52:52Z")

</div>

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:

```auto
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);

```

---

<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:** [October 26, 2021, 3:42pm UTC](https://discourse.glfw.org/t/mixing-full-screen-and-none-full-screen-windows-on-ubuntu/1931/2 "2021-10-26T15:42:02Z")

</div>

> [@ShacharDev](#):
>
> bypass the compositor

What visible behaviour are you seeing in your application and what is the desired behaviour?

GLFW doesn’t have control over bypassing the compositor - on X11 and Wayland I think this is purely up to the compositor itself (Note: I’m not an expert on Linux compositors and window managers so could be wrong here, but this is my understanding).

---

<div class="post-metadata">

**Author:** ![elmindreda](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/elmindreda/32/26_2.png) [@elmindreda](https://discourse.glfw.org/u/elmindreda)\
**Post date:** [October 27, 2021, 10:23am UTC](https://discourse.glfw.org/t/mixing-full-screen-and-none-full-screen-windows-on-ubuntu/1931/3 "2021-10-27T10:23:27Z")

</div>

If you’re on X11 then there is a [window property](https://specifications.freedesktop.org/wm-spec/wm-spec-latest.html#idm46515148762144) that applications can set on windows that should bypass the compositor. GLFW sets this for full screen windows since version 3.0.4, but has no control beyond that. It’s up to the compositor whether to obey it.

You could check whether it helps to set the property on the windowed mode window as well. Run `xprop -f _NET_WM_BYPASS_COMPOSITOR 32c -set _NET_WM_BYPASS_COMPOSITOR 1` and click on the desired window. If so, that’s something to look into as a GLFW fix.

If you’re on Wayland, even if running via XWayland, then I don’t know yet.
