#XPresent

Felix Palmen :freebsd: :c64:zirias@bsd.cafe
2024-06-07

@thomasadam just had an idea myself: #XPresent would be needed for vsync, but maybe this isn't even the problem and just keeping an offscreen pixmap for the window would already be enough ... 🤔

Felix Palmen :freebsd: :c64:zirias@bsd.cafe
2024-06-07

Next step completed, my #TextBox widget now supports mouse input: click, doubleclick and drag 🥳.

Not so nice: With overall more drawing operations, I see #flicker happening more often 😒. Did some research already, it seems with #XRender, the only way to avoid it would be to render to some #pixmap (instead of the window directly) and use #XPresent to get it on the screen? @thomasadam do you know an "easier" way? 🙈

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst