mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-30 15:32:38 +00:00
x11/skia: Avoid assert failing when MappingNotify is received
This commit is contained in:
parent
af32df1a2a
commit
a061ce160b
@ -90,7 +90,7 @@ void X11EventQueue::processX11Event(XEvent& event)
|
||||
TRACE("XEvent: %s (%d)\n", get_event_name(event), event.type);
|
||||
|
||||
X11Window* window = X11Window::getPointerFromHandle(event.xany.window);
|
||||
ASSERT(window);
|
||||
// In MappingNotify the window can be nullptr
|
||||
if (window)
|
||||
window->processX11Event(event);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user