Cannot switch from Widelands in full screen on Linux (alt+tab)

Bug #736404 reported by Hans Joachim Desserud
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
widelands
Fix Released
Low
Unassigned

Bug Description

Looking at bug 735291, I discovered it impossible to alt+tab away from Widelands when running full screen on Linux. Checked across different desktop environments (Gnome+XFCE), so it seems consistent.

Alt+tabbing works fine in windowed mode.

Widelands bzr r5886.

Tags: linux
Changed in widelands:
importance: Undecided → Low
tags: added: linux
Revision history for this message
Joachim Breitner (nomeata) wrote :

I am not sure if this is a bug; most games prevent any kind of interaction with the outside world when in fullscreen mode; after all you don’t want to accidentally switch away in the middle of a fight, and Alt-Tab is a likely combination at least in FPS.

Is it sufficient for you that you can enter windowed mode (forgot the key combination) and then switch windows?

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Well, I don't consider it critical and I mostly reported it because I do find it odd that it would presumably work on Windows, but not Ubuntu/other distros.

Toggeling between windowed/fullscreen is done with "f", btw. (Only works in-game, not in menus)

Revision history for this message
SirVer (sirver) wrote :

Setting to incomplete for bug sweeping.

Changed in widelands:
status: New → Incomplete
Revision history for this message
Jens Beyer (qcumber-some) wrote :

I thought about this a little bit.

It happens with Full screen mode, and it also happens with "Grab Input" Option in windowed mode (not mentioned yet).
F key in game or editor toggles full screen and also enables it.
Alt-Tab is completely caught inside the game and not handed outside to the WM.

So I propose the following:

Catch Alt-Tab inside the game, check if we are fullscreen or have grab mode.
If fullscreen - toggle to windowed (just like F key). Then hand out the Alt-Tab event to the WM.
If Windowed and grab mode - disable grabbing, then hand out the Alt-Tab event to the WM.

After regaining Focus, re-enable fullscreen or grab mode.

Of course, this behavior should be only present on Linux (what about Mac?) but surely not on Windows.
I could also imagine an option in the menu.

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

[Expired for widelands because there has been no activity for 60 days.]

Changed in widelands:
status: Incomplete → Expired
Revision history for this message
SirVer (sirver) wrote :

I think we should reevalute this when we have SDL2 support.

Changed in widelands:
status: Expired → Confirmed
Revision history for this message
Martin Schmidt (martinschmidt) wrote :

At least for me it works fine now!
I tested both build 18, which does not allow switching with alt+tab, and bzr7367, where it works without a problem now.

My system:
Arch Linux, kernel 3.18 and gnome 3.14

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Thanks for testing Marting.

Works for me too on Ubuntu 14.10 running Unity. Presumably fixed by the SDL2 transition or when the fullscreen toggle was expanded/rewritten to also work in menus.

Changed in widelands:
milestone: none → build19-rc1
status: Confirmed → Fix Committed
GunChleoc (gunchleoc)
Changed in widelands:
status: Fix Committed → Fix Released
Revision history for this message
GunChleoc (gunchleoc) wrote :

Fixed in build19-rc1.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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