I would highly support switching to TigerVNC. However, in the event it was chosen not to, I think that the code referring to NumCurrentSelections inside of vncExtInit.cc could just be taken out. Comparing the differences between TigerVNC and vnc4server showed that they just took out that code. A couple of other things changed, but from what I can tell they were bug fixes or features, and could be left out if someone just wanted to patch this and get it over with.
Attached is the related patch file for just these changes, ignoring the other added code.
I would highly support switching to TigerVNC. However, in the event it was chosen not to, I think that the code referring to NumCurrentSelec tions inside of vncExtInit.cc could just be taken out. Comparing the differences between TigerVNC and vnc4server showed that they just took out that code. A couple of other things changed, but from what I can tell they were bug fixes or features, and could be left out if someone just wanted to patch this and get it over with.
Attached is the related patch file for just these changes, ignoring the other added code.