Ok guys its my first post for wine, and I'm french so, don't be to hard on me.
I tried the patch cause I had the same problem as you guys, and I worked it out!!!
I'm on Ubuntu 13.04, and I had wine 1.6
So I did a manual compilation of wine,
Started by downloading the 1.7 version here
Then extracted wine in my home folder, and manually edited the file wine-1.7.0/dlls/user32/input.c
as shown in the patch (much easier than really patching I think).
Then I apt-get
installed all these dependencies because sudo apt-get build-dep wine
didnt work for me:
autotools-dev
bison
debhelper (>= 9)
docbook-to-man
docbook-utils
docbook-xsl
flex
fontforge
gcc-4.5
gettext
libasound2-dev
libcapi20-dev
libcups2-dev
libdbus-1-dev
libfontconfig1-dev
libfreetype6-dev
libgif-dev
libgl1-mesa-dev
libglu1-mesa-dev
libgnutls-dev
libgphoto2-2-dev
libgsm1-dev
libgstreamer-plugins-base0.10-dev
libgstreamer0.10-dev
libjpeg-dev
liblcms1-dev
libldap2-dev
libmpg123-dev
libncurses5-dev
libopenal-dev
libpng12-dev
libsane-dev
libssl-dev
libtiff-dev
libv4l-dev
libx11-dev
libxcomposite-dev
libxcursor-dev
libxext-dev
libxi-dev
libxinerama-dev
libxml2-dev
libxrandr-dev
libxrender-dev
libxslt1-dev
libxt-dev
libxxf86vm-dev
linux-kernel-headers
opencl-headers
oss4-dev
prelink
unixodbc-dev
x11proto-xinerama-dev
Finally I did the compilation:
./configure && make
And woohoo!
./wine ~/photoshop.exe
This way i suppose you can get rid of this bug in any version of wine.
Cheers!