Ubuntu 10.04 + Wine minimizing trouble.

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
RNCC
Newbie
Newbie
Posts: 4
Joined: Fri May 14, 2010 5:26 am

Ubuntu 10.04 + Wine minimizing trouble.

Post by RNCC »

Hello, when I run a fullscreen app through WINE such as WoW and I ctrl-alt-d to do something on the desktop then try to go back to the game my WINE window is no longer full screen, it shows up in the middle of the desktop at about 1/2 the size of the screen. Before the new Ubuntu update all I had to do was switch workspaces and switch back, but now that isn't working.

Any ideas?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Ubuntu 10.04 + Wine minimizing trouble.

Post by vitamin »

RNCC wrote:Hello, when I run a fullscreen app through WINE such as WoW and I ctrl-alt-d to do something on the desktop then try to go back to the game my WINE window is no longer full screen, it shows up in the middle of the desktop at about 1/2 the size of the screen.
What Wine version? Bug like this was recently fixed. Also there was/still is a bug like this in Gnome that doesn't restore fullscreen apps to their correct size.
RNCC
Newbie
Newbie
Posts: 4
Joined: Fri May 14, 2010 5:26 am

Post by RNCC »

Currently using WINE 1.1.42, searched and came up with this one since I needed pulse audio built in with it. I run Mangler (A Ventrilo alternative) and World of Warcraft at the same time and need to be able to hear sounds from both.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

RNCC wrote:Currently using WINE 1.1.42, searched and came up with this one since I needed pulse audio built in with it. I run Mangler (A Ventrilo alternative) and World of Warcraft at the same time and need to be able to hear sounds from both.
Upgrade. Wine does not come with pulseaudio - so refer to your distro support for any Wine issues.
RNCC
Newbie
Newbie
Posts: 4
Joined: Fri May 14, 2010 5:26 am

Post by RNCC »

Upgraded, still seeing the same issues. I also tried the different appearance settings with no progress. Has to be something to do with the Ubuntu upgrade from what I can tell.
RNCC
Newbie
Newbie
Posts: 4
Joined: Fri May 14, 2010 5:26 am

Post by RNCC »

Is it possible to revert back to 9.10?
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

RNCC wrote:Is it possible to revert back to 9.10?
Ask that on the Ubuntu forum.
error10
Newbie
Newbie
Posts: 1
Joined: Sat Jun 05, 2010 2:31 pm

Post by error10 »

Confirmed I am seeing exactly the same issue on Fedora 13/GNOME 2.30 (wine 1.1.38 and NVIDIA 195.36.24). I'm also seeing a lot of other maximized apps being resized to the wrong size randomly, so I don't think it's a Wine issue.
shinobitux
Newbie
Newbie
Posts: 4
Joined: Sat Jul 03, 2010 2:03 am

Post by shinobitux »

I'm also seeing this issue on a fresh install of Ubuntu 10.04 64-bit with wine-1.1.42 and an Ubuntu 10.04 32-bit install that was upgraded from 9.04 -> 9.10 -> 10.04 also running wine-1.1.42

Issue did not exist on 9.04. And I have correctly working World of Warcraft installs running on Mint 8, and I believe Ubuntu 9.10 also.

Is this a problem with the xserver or something else (nvidia drivers?), and definitely not wine?

If this helps troubleshoot:
Starting World of Warcraft (configured for ANY resolution) will adjust and fill the screen.
Ctrl + Alt + Arrow Key to change Desktop and then go back to Desktop with World of Warcraft. WoW will change size so that it is smaller than the actual resolution and mouse can interact with gnome elements that are not hidden by WoW.
By going to WoW's Options -> Video -> Resolution and changing the resolution to ANY resolution will again make WoW fill the screen and then you can set it back to the correct resolution.

Using Ctrl + Alt + Arrow Key to or from WoW when launched from a terminal ( wine ~/.wine/drive_c/Program\ Files/World\ of\ Warcraft/Wow.exe ) show this output:

fixme:win:EnumDisplayDevicesW ((null),0,0x192d738,0x00000000), stub!

whenever you Ctrl + Alt + Arrow Key to or from the Desktop running WoW.

Changing the resolution in the game (and thus getting it back to fullscreen while it's running) outputs this:

Changing to a different resolution:

fixme:win:EnumDisplayDevicesW ((null),0,0x192ed74,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x192efd4,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x192f460,0x00000000), stub!
err:wgl:X11DRV_wglCreatePbufferARB ((nil)): unexpected iPixelFormat(0) <= 0, returns NULL
err:wgl:X11DRV_wglCreatePbufferARB ((nil)): unexpected iPixelFormat(0) <= 0, returns NULL
fixme:win:EnumDisplayDevicesW ((null),0,0x192f450,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x192db88,0x00000000), stub!
fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (5000): STUB
fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT 5000
fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (5000): STUB
fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT 5000
fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONTEXT_VALUE; STUB
fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONTEXT_VALUE; STUB

Changing back to desired resolution:

fixme:win:EnumDisplayDevicesW ((null),0,0x192ed74,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x192efd4,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x192f460,0x00000000), stub!
err:wgl:X11DRV_wglCreatePbufferARB ((nil)): unexpected iPixelFormat(0) <= 0, returns NULL
fixme:win:EnumDisplayDevicesW ((null),0,0x192f450,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x192db88,0x00000000), stub!
fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (5000): STUB
fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT 5000
fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (5000): STUB
fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT 5000
fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONTEXT_VALUE; STUB
fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONTEXT_VALUE; STUB

Forgive me if any of this output is irrelevant.

If you have any tests you would like me to perform, please let me know. I'm willing to compile wine myself and provide additional output. Compiling the xserver gives me the chills, though.
shinobitux
Newbie
Newbie
Posts: 4
Joined: Sat Jul 03, 2010 2:03 am

Post by shinobitux »

Compiled wine-1.2-rc6 on 10.04 64-bit and had identical results as wine-1.1.42
shinobitux
Newbie
Newbie
Posts: 4
Joined: Sat Jul 03, 2010 2:03 am

Post by shinobitux »

By running winecfg and going to the Graphics tab and checking "Emulate a virtual desktop" and selecting the correct resolution I am able to maintain World of Warcraft running in full screen even when switching desktops.

System: wine-1.2-rc6 on Ubuntu 10.04 64-bit

This is a little annoying since running other wine applications will essentially fill the entire desktop space.

Not sure how this will effect gameplay performance yet, but so far so good.
shinobitux
Newbie
Newbie
Posts: 4
Joined: Sat Jul 03, 2010 2:03 am

Post by shinobitux »

Hello, everyone. I think I've found the best solution so far not having found the real issue.

When you launch World of Warcraft (or any other wine application that suffers from the switch-desktops-minimizing problem) try launching the application like as follows:

wine explorer /desktop=winname,1280x1024 "/home/isaac/.wine/drive_c/Program Files/World of Warcraft/Wow.exe"

The format is something like:
wine explorer /desktop=VIRTUAL_DESKTOP_NAME,YOUR_X_RESOLUTIONxYOUR_Y_RESOLUTION PATH_TO_PROGRAM

This allows you to create and set the dimensions for a virtual desktop on the fly without having to check the "Emulate a virtual desktop" in winecfg.

The VIRTUAL_DESKTOP_NAME can be anything you like, as far as I can tell. Haven't tried running multiple programs in the same virtual desktop, so be aware that if you run multiple games at the same time, you may want to use different VIRTUAL_DESKTOP_NAMEs for each program.

Additionally, when I originally came across this fix the poster suggested running the command like so:

wine explorer /desktop=1280x1024 "/home/isaac/.wine/drive_c/Program Files/World of Warcraft/Wow.exe"

Notice the absence of the VIRTUAL_DESKTOP_NAME. This didn't work for me. World of Warcraft would run in a window of the correct resolution but the window wasn't fullscreen and had the title bar, etc.

If what worked for me didn't work for you, try omitting the VIRTUAL_DESKTOP_NAME and see if that helps.
emsy
Level 2
Level 2
Posts: 10
Joined: Fri Jul 02, 2010 7:35 pm

Post by emsy »

shinobitux wrote:By running winecfg and going to the Graphics tab and checking "Emulate a virtual desktop" and selecting the correct resolution I am able to maintain World of Warcraft running in full screen even when switching desktops.

System: wine-1.2-rc6 on Ubuntu 10.04 64-bit

This is a little annoying since running other wine applications will essentially fill the entire desktop space.

Not sure how this will effect gameplay performance yet, but so far so good.
in case of wow, go to video settings check "Windowed mode" and "Maximised"... it will look the same as fullscreen WoW (no window decorations etc) but it will drop a problem with screen blinking when switching to other apps
Locked