Fullscreen Problem

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Tekmo
Level 1
Level 1
Posts: 8
Joined: Wed Jun 25, 2008 6:22 pm

Fullscreen Problem

Post by Tekmo »

Whenever I fullscreen a windowed application using Wine there is an empty and unused bar at the bottom of the screen and my application resizes to fit the remaining area, although my mouse is still able to move to the bottom of the screen.

I'm pretty sure that this is wine-related for a couple of reasons. First, I've tried different window managers (compiz and kwin) and gotten the exact same result. Second, it happens to all wine windows and it never happens to non-wine windows (when fullscreened).

Does anybody have an idea what might be causing this?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Fullscreen Problem

Post by vitamin »

Tekmo wrote:Whenever I fullscreen a windowed application using Wine there is an empty and unused bar at the bottom of the screen and my application resizes to fit the remaining area, although my mouse is still able to move to the bottom of the screen.

I'm pretty sure that this is wine-related for a couple of reasons. First, I've tried different window managers (compiz and kwin) and gotten the exact same result. Second, it happens to all wine windows and it never happens to non-wine windows (when fullscreened).

Does anybody have an idea what might be causing this?
Run 'xrandr' and make sure you have the required screen resolution listed. If not you will need to fix your Xorg configuration.
Tekmo
Level 1
Level 1
Posts: 8
Joined: Wed Jun 25, 2008 6:22 pm

Post by Tekmo »

The required screen resolution is listed when I run xrandr and it is selected. I don't know if it will help to mention, but it is 1680x1050 and it is my monitor's native resolution.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

Tekmo wrote:The required screen resolution is listed when I run xrandr and it is selected. I don't know if it will help to mention, but it is 1680x1050 and it is my monitor's native resolution.
Is that what you configured your application to run at?
Tekmo
Level 1
Level 1
Posts: 8
Joined: Wed Jun 25, 2008 6:22 pm

Post by Tekmo »

No. The application has a different configuration (1400x1050) and does not offer 1680x1050 but it does not use this when it is running windowed. It uses the resolution of the containing window. When I change the application's configuration to various alternate settings nothing happens and the screen makes no attempt to resize.

I doubt this is the problem, though, as I have tried setting my desktop resolution to the same resolution as the application configuration (both 1400x1050) and I still get the black bar at the bottom of the screen.

One thing that may not be clear from my initial post is that although the application is naturally fullscreen (it is Warcraft III) I am running it windowed and then making the window fullscreen using my window manager. The main reason for this because the window manager does a much better job at handling alt-tabbing from fullscreen than wine does.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

Tekmo wrote:No. The application has a different configuration (1400x1050) and does not offer 1680x1050 but it does not use this when it is running windowed.
So what do you want from Wine? If your application wants resolution X and your system does not support it how do you want Wine to support it?

Fix your configuration to list the resolution GAME USES in output of 'xrandr' command.
Tekmo
Level 1
Level 1
Posts: 8
Joined: Wed Jun 25, 2008 6:22 pm

Post by Tekmo »

xrandr lists both 1400x1050 and 1680x1050. 1680x1050 IS supported by my system and the only reason that Warcraft resolution does not list it is because it does not list widescreen resolutions (for gameplay balance reasons, but if I force a widescreen resolution it will stretch the window yet also correctly take advantage of my monitor's native resolution). However, even when I set my desktop resolution to 1400x1050, which is a resolution my system supports (it is listed in xrandr) and Warcraft recognizes (it shows up in options), it still shows the black bar.

I just wanted to point out that the black bar only shows up when using my bastardized fullscreen workaround. When I run warcraft without the -window option / compiz fullscreen hack and just have it invoke fullscreen naturally by a plain vanilla execution of the game there is no resolution problem and it uses up the screen perfectly. The only time this occurs is if my window manager makes it fullscreen and only if it is wine. I do know it is a wine issue, though, and not a window manager issue for the reasons I noted in my first post.

To clarify, what I'm doing (which gives the black bar) is this:

[Set compiz to automatically fullscreen windows named war3.exe]
wine /path/to/war3.exe -window -opengl (the opengl is because directx does NOT work at all with -window for reasons I haven't investigated)

The "vanilla" way (which works, but is terrible at alt-tabbing) is:

wine /path/to/war3.exe (same behavior with or without -opengl)

Also, I wanted to note again that the 1400x1050 listed in the game's configuration is NOT the resolution the game uses when it is windowed. It uses the size of the containing window, even if that window is fullscreened. Changing this resolution has absolutely no effect when running windowed. It only has an impact if I do the "vanilla" run of warcraft without my window / compiz fullscreen workaround.
Tlarhices
Level 4
Level 4
Posts: 101
Joined: Sun Mar 02, 2008 9:28 pm

Post by Tlarhices »

Compiz doesn't get along well with Wine and is considered as unstable.
The best is to not use it with Wine.

You can search this forum for Compiz to see an abstract of bugs it's creating.

If this works with Wine without Compiz, there are great chances that the bug is in fact in Compiz.
Tekmo
Level 1
Level 1
Posts: 8
Joined: Wed Jun 25, 2008 6:22 pm

Post by Tekmo »

I tried it out with kwin, too, and it gave me the same problem. I even went ahead and tried icewm, too, to prove a point. Icewm gave me the exact same result. It's not the window manager's fault. Also, none of these window managers fail to correctly full-screen non-wine applications. It's clearly a wine issue.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

Tekmo wrote:[Set compiz to automatically fullscreen windows named war3.exe]
Don't do that. You are asking for problems. Wine does not and can not support all possible "special" configurations.[/quote]

And you even said yourself:
Tekmo wrote:The "vanilla" way (which works, but is terrible at alt-tabbing)
So don't break Wine and it will work.
Tekmo
Level 1
Level 1
Posts: 8
Joined: Wed Jun 25, 2008 6:22 pm

Post by Tekmo »

Except that it doesn't work, because it cannot alt-tab correctly. But technically this topic is not about that, so I'll consider this topic closed.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

Tekmo wrote:Except that it doesn't work, because it cannot alt-tab correctly. But technically this topic is not about that, so I'll consider this topic closed.
Then please start the new topic if there is something wrong about alt-tab. Btw don't forget that if game takes a while to continue on windows after alt-tab it will do the same on Wine.
Tekmo
Level 1
Level 1
Posts: 8
Joined: Wed Jun 25, 2008 6:22 pm

Post by Tekmo »

Well, the reason I tried to avoid the native alt-tab behavior and attempted the window-manager controlling it was because I had gotten native alt-tab functionality working in an old version of wine (0.9.x), but it gave me the undesirable behavior of the panel always being on top if I alt-tabbed out and resumed focus, which renders the game unplayable for the same reason as the black bar I described, since I can't use that edge of the screen to scroll the game. But I'll try making a separate post to note that issue anyway.
DL
Level 3
Level 3
Posts: 70
Joined: Fri Jun 27, 2008 7:47 pm

Post by DL »

I tried this out with Warcraft III and I experience the same issue with ratpoison as my window manager.This doesn't occur with other games, though, so it's probably an issue with W3's window mode.I also found that if I start with a higher resolution "1600x1200" for example, then switch to a lower resolution "1280x960" then the missing area at the bottom of the screen is gone, but only with lower resolutions than 1600x1200.The highest resolution doesn't matter, though, as if I start with 1280x960 the game will only display correctly with resolutions lower than that.
As a hacky workaround, and assuming your monitor supports it, you could try setting a resolution higher than 1680x1050 and then switching back to it after starting the game.
Tekmo
Level 1
Level 1
Posts: 8
Joined: Wed Jun 25, 2008 6:22 pm

Post by Tekmo »

I tried what DL said and it does indeed work. I started at 1680x1050, the bar was there, switched down to 1400x900 and the bar disappeared. When I closed and reopened Warcraft (still at 1400x900) the bar reappeared. I'll try doing that behavior automatically as I don't mind the hackiness of the startup.
Locked