From e1139b7e8da15f4b62809595d81849e802ba91b3 Mon Sep 17 00:00:00 2001 From: Nimetu Date: Mon, 20 Dec 2021 08:46:36 +0200 Subject: [PATCH] Fix moving fullscreen window between monitors --- nel/src/3d/driver/opengl/driver_opengl_window.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nel/src/3d/driver/opengl/driver_opengl_window.cpp b/nel/src/3d/driver/opengl/driver_opengl_window.cpp index 6dd8febd6..20a6bdc00 100644 --- a/nel/src/3d/driver/opengl/driver_opengl_window.cpp +++ b/nel/src/3d/driver/opengl/driver_opengl_window.cpp @@ -2065,6 +2065,8 @@ bool CDriverGL::setMode(const GfxMode& amode) // if window is visible, then also restore mouse relative position. if (!mode.DisplayDevice.empty() && mode.DisplayDevice != current.DisplayDevice) { + setWindowStyle(EWSWindowed); + int screen = DefaultScreen(_dpy); Window root = RootWindow(_dpy, screen); uint mouseX = mode.Width / 2; @@ -2091,6 +2093,7 @@ bool CDriverGL::setMode(const GfxMode& amode) XMoveWindow(_dpy, _win, newX, newY); _WindowX = newX; _WindowY = newY; + setWindowStyle(EWSFullscreen); } } #endif