From f07be50bd358dc972308527a902c4136e6e8155f Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Mon, 30 Dec 2019 05:30:31 +0100 Subject: [PATCH] source/Platform/Unix/X11Display.cpp: Replace ResizeRedirectMask with StructureNotifyMask ResizeRedirectMask is broken (will not update the window size). We use StrucutreNotifyMask instead and capture the window size from CaptureNotify event instead. --- source/Platform/Unix/X11Display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Platform/Unix/X11Display.cpp b/source/Platform/Unix/X11Display.cpp index 7e57b76..a98ccd3 100644 --- a/source/Platform/Unix/X11Display.cpp +++ b/source/Platform/Unix/X11Display.cpp @@ -36,7 +36,7 @@ bool X11Display::create(DisplayDescription description) // We want Keyboard,Mouse,Resize,Exposure (repaint) events. attr.event_mask = KeyPressMask | KeyReleaseMask | ButtonPressMask | ButtonReleaseMask | PointerMotionMask - | ResizeRedirectMask | ExposureMask; + | StructureNotifyMask | ExposureMask; m_win = XCreateWindow(m_disp, RootWindow(m_disp, m_screen),