libs/wine winex11.drv: Toggle debug traces with the key F12.
To disable debug traces on startup set the environment variable
WINEDELAY=enable , to only enable the hotkey (with traces enabled
on startup) set the variable to anything (e.g. empty).
If keypresses are not picked up you might need to set wine to
unmanaged or use the virtual desktop mode.
Based on a patch from
http://wiki.winehq.org/Debug_trace_toggle_key by Mike Hearn, with
additions from http://kegel.com/wine/debug-delay-3.patch by Dan
Kegel.