▲ | yjftsjthsd-h 2 days ago | ||||||||||||||||||||||||||||||||||||||||||||||
What I really want, but don't have the technical skill to write unfortunately:), is a window manager or compositor that lets me set the size of a window and the viewport into that window independently. That is, formalize the approach that yes this window is rendering as if it was taking up half the screen but I only need to actually see this tiny slice of it, so just give me a window that shows that piece | |||||||||||||||||||||||||||||||||||||||||||||||
▲ | porridgeraisin 2 days ago | parent | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||
This should be possible on X11 using standard extensions. XCompositeRedirectWindow to render your window to a virtual buffer, get pixmap, bind pixmap to new croppedWindow as a GL texture, here apply a crop transform. Then optionally unmap original window. Finally, we have to remap input events. This is trivial browser-style event interception, XSelectInput, change x,y, XSendEvent. I can try to make it work sometime this week. A CLI tool you'd use like `xcropwindow windowID x y dx dy`. As a side effect, this way you can have multiple viewports into different parts of a window. But there's probably a few deal-breaker edge cases I'm missing. On the other hand, the Great Wayland Security Theater probably doesn't admit such riff-raff. | |||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||
▲ | abhinavk 2 days ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||||||||||||||
Do you mean something like this? https://github.com/dawsers/scroll?tab=readme-ov-file#content... |