https://bugs.winehq.org/show_bug.cgi?id=31262
--- Comment #16 from DBLaci dblaci@dblaci.hu --- Based on the comments above I found out it is because of the twinview. I don't know if the problem is exists with recent wine versions or not, but for the global good I post my script I start the game with:
----------
#!/bin/bash P="/mnt/gyors0/Diablo3/Diablo III" cd "$P" X :1.0 -ac & sleep 5 DISPLAY=:1.0 xrandr -d :1 --output HDMI-0 --mode 0x0 DISPLAY=:1.0 setarch i386 -3 -L -B -R wine Diablo\ III.exe -launch -opengl
----------
Of course some variables will be different, but the idea concerning this bug is to turn off the secondary display with xrandr.
Because I use a dedicated X session for the game, I don't mind switch the monitor back on, because it is on, if I switch to my default X server (ctrl-alt-f7), but it is possible to do with a command like this:
xrandr -d :1 --output HDMI-0 --mode 1680x1050 --right-of DVI-I-1
(again, this is valid for my config only)
Of course this is not a fix for the bug, but a workaround.
One more thing, that for my system (i don't know why) if i change X screens, sometimes the kwin (KDE) fails, and shows black screen, only the mouse cursor moving. I found out, restarting kwin fixes this without restarting the X server.
This script:
#!/bin/bash killall kwin && kwin
I set this one on a hotkey (ctrl-alt-f4 for me), and voila, I am able to switch screens (mostly, because sometimes both X server crashes, and i have to relogin...)