1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-19 02:37:51 +03:00

x11: explicitly enable Dri2

On some systems, the X server will send dri2 events when enabling
opengl. Without telling the rust xcb crate that they might arrive, it
may panic.

refs: https://github.com/rust-x-bindings/rust-xcb/issues/204
refs: https://github.com/wez/wezterm/issues/2559
This commit is contained in:
Wez Furlong 2022-10-08 08:11:57 -07:00
parent fa4fced599
commit 7f8d3a31d7

View File

@ -502,6 +502,7 @@ impl XConnection {
xcb::Extension::Present,
xcb::Extension::RandR,
xcb::Extension::Render,
xcb::Extension::Dri2,
],
)?;
conn.set_event_queue_owner(xcb::EventQueueOwner::Xcb);