fullscreen uses panning, and xrandr has cursor moving

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
willb
Level 2
Level 2
Posts: 20
Joined: Sat Jul 11, 2009 1:29 pm

fullscreen uses panning, and xrandr has cursor moving

Post by willb »

I'm having a problem with games running in wine fullscreen with nvidia proprietary driver 185.18 under Fedora 11 64-bit.

My desktop resolution is 1920x1200, and when I run a game with 1280x960 fullscreen setup (like Halo for example), it changes resolution to 1280x960 and runs fullscreen as expected, but when I move the mouse toward the edge rapidly, it pans the game screen away as if 1280x960 screen is moving around the larger 1920x1200 desktop, with the 1280x960 game display at the lower right corner of the larger desktop.

If I run xrandr manually before launching the game, e.g.,

xrandr --output default --mode 1280x960

then panning no longer occurs, so the game display stays on the screen, but now a different problem occurs: The mouse cursor moves slowly toward upper left corner by itself, as if adjusting to a scaled coordinate (maybe scaling 1920x1200 to 1280x960? I don't know.) I can move it around, but it still slowly heads toward the upper left corner. Obviously I can't control the game movement that requires the mouse, as it slowly moves the 1st person view toward the sky for example.

How do I solve this problem?

Setting DXGrab on or off has no effect.
willb
Level 2
Level 2
Posts: 20
Joined: Sat Jul 11, 2009 1:29 pm

never mind, I was running compiz

Post by willb »

I found the cursor moving problem is related to compiz. If I disable compiz, it works.

The desktop panning was not related to xrandr. I found that halo crashes and defaults to 640x480, not 1280x960. So it was properly running in 1280x960, but with 640x480 screen (not 1280x960 in 1920x1200).

Oh well, halo crashes while quitting and I've no intention to disable compiz.
Thunderbird
Level 5
Level 5
Posts: 336
Joined: Mon Nov 24, 2008 8:10 am

Post by Thunderbird »

To me it sounds like your Wine wasn't compiled with xrandr support as normally we use that for resolution changing. I think plain old xf86vm is used on your system which resizes to a 'vritual resolution' and that way can have the panning issues you describe.
James Mckenzie

fullscreen uses panning, and xrandr has cursor moving

Post by James Mckenzie »

then panning no longer occurs, so the game display stays on the screen, but now a different problem
occurs: The mouse cursor moves slowly toward upper left corner by itself, as if adjusting to a scaled
coordinate (maybe scaling 1920x1200 to 1280x960? I don't know.) I can move it around, but it still slowly
heads toward the upper left corner. Obviously I can't control the game movement that requires the mouse,
as it slowly moves the 1st person view toward the sky for example.
This appears to be a X11 issue. BTW, you did not mention what type of PC you are using, could you reply with this information?

James McKenzie
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: fullscreen uses panning, and xrandr has cursor moving

Post by vitamin »

willb wrote:My desktop resolution is 1920x1200, and when I run a game with 1280x960 fullscreen setup (like Halo for example), it changes resolution to 1280x960 and runs fullscreen as expected, but when I move the mouse toward the edge rapidly, it pans the game screen away as if 1280x960 screen is moving around the larger 1920x1200 desktop, with the 1280x960 game display at the lower right corner of the larger desktop.
What you describe is an "XVidMode" way of changing resolution. Wine uses that if xrandr is disabled (via registry) or not available.
Locked