http://bugs.winehq.org/show_bug.cgi?id=5113
Summary: Wine allows programs to change X resolution, doesn't fix. Product: Wine Version: CVS Platform: Other OS/Version: other Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-loader AssignedTo: wine-bugs@winehq.org ReportedBy: nospam@thenerdshow.com
Wine allows all Windows full-screen programs (games mostly) to change the X screen resolution. Most do not correctly restore it. This is a problem with Windows as well as wine. We can fix it in wine, however by running wine with a wrapper to check screen resolution, like so:
============================ smartwine.sh ==== #/bin/sh size=$(sudo xrandr | grep * | cut -b2) wine $@
#For testing. Purposefully set X to a different resolution. #xrandr -s 1
newsize=$(sudo xrandr | grep * | cut -b2)
if [ $size <> $newsize ]; then echo "Wine has changed X resolution. Fixing it..." fi
xrandr -s $size
================================= Shouldn't this functionality be built in to wine, however?