1
0
Fork 0

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.
This commit is contained in:
Henrik Hautakoski 2019-12-30 05:30:31 +01:00
parent 478cdaa8a1
commit 31970826a4

View file

@ -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),