keks-n's blog

9Apr/122

ScaleWine

I often get problems with games running in wine. Sometimes I'm unable to Alt-Tab from fullscreen, sometimes game crashes and I have to manually reset screen resolution. In worst cases game freezes and I have to kill it's process from virtual console because of broken alt-tab support. Some games work normally only in wine's pseudo-fullscreen mode (virtual desktop) which cann't be resized.

I decided to do something with that and wrote a small utility that scales wine's virtual desktop. There is still a lot work to be done, since now keyboard doesn't work and GetCursorPos needs a LD_PRELOAD wrapper for XQueryPointer.

You can get source code at GitHub.