Resolution changes sometimes rearranging desktop

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
superlgn
Level 2
Level 2
Posts: 14
Joined: Fri Jul 17, 2009 5:01 pm

Resolution changes sometimes rearranging desktop

Post by superlgn »

Sometimes when I play games that use a resolution different from my normal X display, the windows on my workspace get shifted over toward the upper left. It's an issue that's been happening for a long while and I'm not sure if this is more of a general X issue or something specific to wine. As far back as I remember, it only happens with wine (0.x-0.9, 1.0, 1.1) and I've seen it in different window managers (openbox, sawfish).

Anyone experience something similar? Is there any way to stop it?
DaVince
Level 8
Level 8
Posts: 1099
Joined: Wed Oct 29, 2008 4:53 pm

Post by DaVince »

I know what you mean, the same is happening whenever I set my screen resolution to something low with xrandr or lxrandr. It seems to be a window manager issue and is regarded as a feature; all your icons are rearranged so they're visible on the screen in your current resolution.

Kind of annoying, wish they'd add an option in window managers to disable it.
superlgn
Level 2
Level 2
Posts: 14
Joined: Fri Jul 17, 2009 5:01 pm

Post by superlgn »

Hm, it doesn't happen with xrandr for me and I don't have lxrandr. I've never seen it with any native games (wolf, quake3,4 doom3, etc), just the occasional game in wine, usually on the first run when it's configured to use a lower resolution by default.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Resolution changes sometimes rearranging desktop

Post by vitamin »

superlgn wrote:Anyone experience something similar? Is there any way to stop it?
By default Wine uses xrandr which really does change screen and desktop resolution. This forces all windows to rearrange.

You can disable xrandr via registry and use xvidmode instead (enabled by default but xrandr used instead if available). The only side-effect of using XVidMod is mouse can "escape" outside of game window and scroll display. Just try it and see if it works for you.

http://wiki.winehq.org/UsefulRegistryKeys
superlgn
Level 2
Level 2
Posts: 14
Joined: Fri Jul 17, 2009 5:01 pm

Post by superlgn »

Thanks for the info.. I vaguely recall seeing the scrolling thing with FarCry, which is something I would have probably played in the early 0.9 days. If that's the result, I'd rather not change anything. :P Like I said earlier, it doesn't happen all the time and manually using xrandr (xrandr -s 800x600) doesn't trigger it. It's just one of those things that's always bothered me and I thought I'd ask, guess I'll just have to keep dealing..

I wonder if removing all other X modes except for the native resolution for my lcd would be a way to stop it. That would just be for the first run of the game, until I could crank the resolution up. Having a quick and easy reproducible test case would be a place to start. Is there a particular xrandr command (some option) that's known to cause this?
Diggedy
Newbie
Newbie
Posts: 3
Joined: Mon Jul 13, 2009 11:05 am

Post by Diggedy »

another option is to run the game inside a window, you can set the window to be the same size as you desktop. Granted it doesnt look as pretty but it stops the screen resizing
Diggedy
Newbie
Newbie
Posts: 3
Joined: Mon Jul 13, 2009 11:05 am

Post by Diggedy »

sorry, when i say window I mean a virtual desktop which you find in the wine configuration (now wheres that edit button ) :?
Locked