Skip to content

Commit

Permalink
Fix crashes on some debian-based systems: Fatal IO error 11 / [xcb] U…
Browse files Browse the repository at this point in the history
…nknown sequence number while processing reply

fixes phil294/vimium-everywhere#4
fixes #44
fixes #42
fixes phil294/vimium-everywhere#5
  • Loading branch information
phil294 committed Jul 20, 2023
1 parent 2dec99d commit e6083da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/run/display/x11.cr
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ module Run
@record : ::Xtst::RecordExtension?

def initialize
::X11::C::X.init_threads # because otherwise crashes occur in some mysterious cases

set_error_handler

@display = ::X11::Display.new
Expand Down

0 comments on commit e6083da

Please sign in to comment.