Anonymous Login
2019-09-20 05:36 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0000030OpenClonkEnginepublic2012-10-14 14:33
ReporterApe 
Assigned ToNewton 
PrioritynormalSeveritytrivialReproducibilityalways
StatusclosedResolutionwon't fix 
Product Version 
Target VersionFixed in Version 
Summary0000030: When a fullscreen game window loses focus it minimizes
DescriptionWhen I have a fullscreen game window and do 'Alt+Tab' or other similar commands where the game window loses it's focus, the window minimizes. It shouldn't. Instead (like every other fullscreen window) it should just bring another window above the clonk window. I can't find any good reason for minimizing the window.
Additional InformationThis happens at least on my Ubuntu Linux.
TagsNo tags attached.
Attached Files

-Relationships
+Relationships

-Notes

~0000066

Ape (reporter)

I got this bug fixed with a simple patch. (See the attachment). For me it ultimately fixes the bug and causes no side effects. I'd like to know if it works for the other users, so please post any test results.

I also posted a screenshot showing what you can do with this patch. It's impossible without it.

~0000069

Ape (reporter)

Last edited: 2009-07-16 12:13

Seems that "HasFocus = false;" I removed had nothing to do with this bug. You don't have to remove it. Also I found out that sometimes you can't ALT+TAB at all if you have this patch enabled. But when you can alt+tab it works a lot better than without this patch. So we need to find the race condition that causes the random no-alt-tab-problem.

EDIT: If you press alt+tab when the game is initializing, alt+tab will work at least until you restart the game.

EDIT2: This patch seems to cause problems with windowed mode focus (which normally work perfectly i.e. this bug only affects fullscreen). Maybe I am looking the solution from the wrong place.

~0000081

Newton (administrator)

Alt+Tab = minimize on full-screen games is the standard behaviour of all games I know. Actually, on Ubuntu, I can't tab out on either Armagetron Advanced or Battle of Wesnoth at all.

~0000083

Ape (reporter)

@Newton: Well on my Ubuntu the standard behaviour is to alt+tab like I told. And I really think it's better than minimize. See the screenshot I attached.

There is a way to make it work correctly, but I don't know what it is.

~0000084

Günther (developer)

Minimizing the window is intentional, to minimize the possibility that Clonk gets accidentally activated, which can cause an annoying mode change. This is probably not that relevant for click-to-focus users, but I'm using focus-follows-mouse.

I'd suggest changing CStdApp::HandleXMessage so that it doesn't set Priv->pending_desktop if the game resolution is the same as the desktop resolution. You'll have to record whether that's true in CStdAppPrivate::SwitchToFullscreen.

~0000087

Ape (reporter)

Last edited: 2009-08-06 07:02

I agree that the minimize is nice if you are running Clonk with a different resolution (I can't see any reason to use multiple resolutions, tho).

But if the resolution is same (I really thought everybody has the same), I think there is no harm with the way I explained. I'll try to look what I can do.

EDIT: I tried to change the code in many ways, but I was unable to get the desired functionality.

~0002215

Newton (administrator)

obsolete. We have automatic windowed->fullscreen mode now
+Notes

-Issue History
Date Modified Username Field Change
2009-07-16 08:03 Ape New Issue
2009-07-16 11:17 Ape Note Added: 0000066
2009-07-16 11:18 Ape File Added: fullscreenfocusbug.patch
2009-07-16 11:18 Ape File Added: alt+tab.png
2009-07-16 11:58 Ape Note Added: 0000069
2009-07-16 12:01 Ape Note Edited: 0000069
2009-07-16 12:13 Ape Note Edited: 0000069
2009-08-04 18:27 Newton Note Added: 0000081
2009-08-04 19:05 Ape Note Added: 0000083
2009-08-05 20:29 Günther Note Added: 0000084
2009-08-05 20:37 Ape Note Added: 0000087
2009-08-06 07:02 Ape Note Edited: 0000087
2012-10-14 14:33 Newton Note Added: 0002215
2012-10-14 14:33 Newton Status new => closed
2012-10-14 14:33 Newton Assigned To => Newton
2012-10-14 14:33 Newton Resolution open => won't fix
2014-02-17 03:29 Newton File Deleted: fullscreenfocusbug.patch
2014-02-17 03:29 Newton File Deleted: alt+tab.png
+Issue History