Skip to content

Conversation

@BenWibking
Copy link

@BenWibking BenWibking commented May 26, 2025

Replace old rubber band drawing that grabbed the X server with double buffered drawing.

This allows using x11vnc or xpra to stream an interactive "remote" desktop with Amrvis.

Fixes #32.

@WeiqunZhang
Copy link
Member

I suspect there are memory leak issues in this PR. For example, in PltApp::DoRubberBanding there are early exits by return; that do not seem to free the allocated memory properly. Using RAII might be the way to go. Also are there reasons to not making rubberBnadBackup and rubberBandBuffer local to the function?

I know nothing about X11 programming. So I don't feel comfortable about the changes. Maybe we can merge this into a branch instead of the main branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

avoid calling XGrabServer

2 participants