yjftsjthsd-g / keynav

retire your mouse.
Other
18 stars 3 forks source link

Check if 'zone' is non-null before using it #15

Closed mgsloan closed 5 years ago

mgsloan commented 6 years ago

This seems to fix the following X11 error

Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed request: 129 (SHAPE) Minor opcode of failed request: 1 (X_ShapeRectangles) Resource id in failed request: 0x0

This error only happens occasionally, but causes keynav to crash