Wine windows can't go fullscreen

Bug #1039045 reported by František Zatloukal
122
This bug affects 26 people
Affects Status Importance Assigned to Milestone
Compiz
Invalid
Undecided
Unassigned
Wine
New
Undecided
Unassigned
compiz (Ubuntu)
Invalid
Undecided
Unassigned
wine (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Report is reaction at: https://bugs.launchpad.net/unity/+bug/734908/comments/84
I am using wine 1.5.10, problem tested on 2 different configurations. I can post debug info from different machine and game(battlefield 2142 on AMD Graphics) if you want.
Virtual Desktop emulation in wine doesn't help(screenshot added to this report).
Tested at current Quantal Quetzal updated daily and latest wine avaible at ppa from winehq website.
Tested with both SNA and UXA backend - same problem.

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: unity 6.2.0-0ubuntu2
ProcVersionSignature: Ubuntu 3.5.0-10.10-generic 3.5.1
Uname: Linux 3.5.0-10-generic x86_64
ApportVersion: 2.4-0ubuntu8
Architecture: amd64
Date: Mon Aug 20 15:57:50 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
ProcEnviron:
 TERM=xterm
 PATH=(custom, user)
 LANG=cs_CZ.UTF-8
 SHELL=/bin/bash
SourcePackage: unity
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
František Zatloukal (zatloukal-frantisek) wrote :
Revision history for this message
František Zatloukal (zatloukal-frantisek) wrote :

I can confirm that this bug is Unity or Compiz related. Other Desktop Environments are NOT affected.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

František,

The screenshot does not show any fullscreen window, does it? Please clarify what you mean by fullscreen and/or provide more (different) screenshots of the problem.

Changed in unity (Ubuntu):
status: New → Incomplete
Revision history for this message
František Zatloukal (zatloukal-frantisek) wrote :

It shows fullscreen window - everything is set to be fullscreen (Wine Desktop emulation is on and entire game is set to fullscreen) but Unity(or Compiz) doesn't handle it > it is shown as non-fullscreen window. In other desktop environments with same settings (tested kde and xfce) game runs at fullscreen.

summary: - Unity is visible on top of fullscreen wine apps [quantal]
+ Wine windows can't go fullscreen
affects: unity (Ubuntu) → compiz (Ubuntu)
Changed in compiz (Ubuntu):
status: Incomplete → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in compiz (Ubuntu):
status: New → Confirmed
Revision history for this message
Matthew (ruinairas1992) wrote :

Applied all updates to fresh ubuntu 12.10 install and the same results as before. Switching to Unity 2D is not possible anymore, so this is more important than ever to fix. (Testing the legacy support method now)

Revision history for this message
Matthew (ruinairas1992) wrote :

Tested using Halo 1 at 800x600 resolution (Default setup) with the legacy support enabled. It still doesn't render in fullscreen correctly.

Tested with Intel Sandy Bridge Graphics (Intel HD 3000)
Tested with Nvidia Geforce 550TI (With driver 304.17 installed)

Revision history for this message
Wayne Gratton (wgratton) wrote :

I am experiencing the same problem with wine under Ubuntu 12.10. This happens with most full screen games, but not when the resolution is the same as the current desktop. This did not happen under Unity 2D in 12.04, only with Unity 3D.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Failure to change the screen resolution is entirely wine's job. It has nothing to do with compiz. So bug affects wine too.

Revision history for this message
František Zatloukal (zatloukal-frantisek) wrote :

And should it be fixed upstream or it affects just ubuntu deb packages from ppa?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Yes, all fixes should go upstream first. If not already.

Revision history for this message
Wayne Gratton (wgratton) wrote :

Just to be clear. I have also tested this with the native Linux game Spirits, the Unity side bar and top menu remain here also.

None of these issues occured when using Unity 2D.

Revision history for this message
František Zatloukal (zatloukal-frantisek) wrote :

"Failure to change the screen resolution is entirely wine's job. It has nothing to do with compiz."
So, Daniel?
I think it's unity/compiz problem - if it doesn't occur in other desktop enviroments - what should wine do with it?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

There may be a compiz problem somewhere here, which is why it's still mentioned at the top of the bug.

But that does not change the fact that it is the job of the program (wine/game) to change the screen resolution, and not the job of the window manager (compiz). Compiz has no code at all for changing the screen resolution.

Revision history for this message
František Zatloukal (zatloukal-frantisek) wrote :

Yes - of curse. I think wine tries to go fullscreen and then it´s pushed back by some component of unity/compiz.
I normally run wine programs from terminal and i dont´t see anything unusual in terminal log (aka log from xfce is same as in unity).
I am now planning to test play on linux(more versions of wine) on open source radeon driver, i´ll report back when i´ll finish.
Do you want some special logs, or just terminal output and result screenshot?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in wine (Ubuntu):
status: New → Confirmed
Revision history for this message
Gathog (tigerus) wrote :

I experienced exactly the same bug in Chocolate Doom.

Revision history for this message
Loris Zinsou (nepenthes) wrote :

Same bug in updated Ubuntu 12.10 :
1) Wine is set to start apps in a virtual desktop (set to my native resolution).
2) I start Steam, the Unity top panel is hidden.
3) I start XCOM : Enemy Unknown or any other game (Bioshock, Supreme Commander 2, all Source Games), the Unity top panel appears again, on top of the game window, which is offset to the bottom of the screen by the height of Unity panel.

The issue does not appear when not using virtual desktop. But XCOM only runs in a virtual desktop.

Everything is set to run at native resolution.

Revision history for this message
Luis Alvarado (luisalvarado) wrote :

Trying out several of the Steam games and for example L4D2 opens fullscreen but the unity launcher icons are still ther on the left and the top panel is still there. Both of which force the whole game to move to the right and bottom since the launcher icons and the top panel take the rest of the screen. So one can play most of the games but the unity launcher and top panel will still show (Taking the space of the fullscreen with them). This also includes problems for games that need to use the ALT key, since pressing it will make the Unity HUD appear.

Tested on Ubuntu 12.04, 12.10, 13.04 in both 32 bit and 64 bit. With Wine 1.5.17, 1.5.18 and 1.5.19.

Since others tested other DE, I also wanted to see this for myself. Using KDE and XFCE in my tests did give me fullscreen support. There was no icons or anything, just the game in real fullscreen.

Revision history for this message
Ted (ted276) wrote :

I believe the inability for certain apps to go fullscreen under Compiz is a well known issue. I experience this with Xephyr for instance. See [1] for a possible root cause. Some workarounds that are reported to work (haven't work for me yet):

sudo apt-get install compizconfig-settings-manager compiz-fusion-plugins-extra
ccsm

Enable Workarounds > Legacy Fullscreen Support
Set a keybinding for Extra WM Actions > Toggle Fullscreen

[1] http://forums.runicgames.com/viewtopic.php?f=24&t=37756

Revision history for this message
LaunchpadUser (lpusr) wrote :

The compiz workaround doesn't work for me. Just a few weeks ago, fullscreen worked in my wine games. But since the latest Ubuntu / WIne 1.5 updates it's broken. Also already tried to update to Wine 1.6: same result.

Revision history for this message
Reed Lipman (rmlipman) wrote :

I think the "Legacy Fullscreen Support" workaround might be broken, as the only way I'm able to get wine to fullscreen now is by patching wine to not set _MOTIF_WM_HINTS.

Patch to wine is attached for information. I'm not sure that it's the right way to do it, but this patch makes wine fullscreen in compiz again for me.

I'm not sure that this is a wine bug is why I haven't filed anything there yet.

For more information:
http://steamcommunity.com/app/221410/discussions/0/882966056667719131/

Revision history for this message
LaunchpadUser (lpusr) wrote :

Okay, some important information: I installed the very same game exactly the same way on another computer that has the same Ubunut 12.04 64 Bit installation with same Unity desktop and same WIne 1.6-rc2 installation. Main difference the second computer has integrated AMD graphics - and on this second computer, fullscreen works!!!

So, I guess it's some kind of video problem for nVidia graphics?

Revision history for this message
LaunchpadUser (lpusr) wrote :

... and another progress: yes, suddenly worked many games not in fullscreen anymore. But I got it back working by changing the the winecfg: no virtual screen, do not allow window manager to decorate/control windows. With this setting, I finally git Giana Sisters running fullscreen with wine 1.6-rc2. :-)

Revision history for this message
Lysenko Denis (pharmasolin) wrote :

Thank you for taking the time to report this bug. We have tried to recreate this on the latest release of Ubuntu and cannot reproduce it. This bug is being marked as Invalid. If you believe the problem to still exist in the latest version of Ubuntu please comment on why that is the case and change the bug status to NEW.

Changed in compiz (Ubuntu):
status: Confirmed → Invalid
Changed in wine (Ubuntu):
status: Confirmed → Invalid
Changed in compiz:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.