AnalogTerm2: Fix a bug in select_end()
authorMatthew Mondor <mmondor@pulsar-zone.net>
Mon, 25 Sep 2023 09:51:28 +0000 (09:51 +0000)
committerMatthew Mondor <mmondor@pulsar-zone.net>
Mon, 25 Sep 2023 09:51:28 +0000 (09:51 +0000)
commit180752e56981676e7f27e3b5d83274d94fc31fc0
treed5d4ce9bfd4330a4c10b313fa8a89beab61299eb
parentab5fbcca4fb08e7c0b115fde2a671b92801a5c87
AnalogTerm2: Fix a bug in select_end()
A crash was occasionally possible since the introduction of the
selection expiry timer, a type of race condition.  Add extra -1
checks and reset the timer for related X11 events.
mmsoftware/analogterm2/src/screen.c