resurrecting-open-source-projects / scrot

SCReenshOT - command line screen capture utility
Other
495 stars 49 forks source link

fix undefined behavior with XComposite #359

Closed N-R-K closed 1 year ago

N-R-K commented 1 year ago

according to the XComposite manpage:

No other XComposite functions (except XCompositeQueryExtension) may be called before XCompositeQueryVersion. If a client violates this rule, the effects of all subsequent XComposite calls that it makes are undefined.

fix it by calling XCompositeQueryVersion first.