godot icon indicating copy to clipboard operation
godot copied to clipboard

macOS: Mission Control window focus issue

Open git-brandon opened this issue 5 years ago • 14 comments


Bugsquad note: This issue has been confirmed several times already. No need to confirm it further.


Godot version:

Godot_v3.1-rc1_osx.64

OS/device including version:

macOS Mojave 10.14.3

Issue description:

NOTE: I'm not sure if this is a macOS issue or a Godot issue, but it only seems to happen with this application.

When using Mission Control to switch back to Godot, it sometimes switches to the application, but leaves focus on the previous application window. It does switch to the correct application as the Godot menu displays in the menu bar, but with the wrong application window focused. This requires me to either switch to Godot again or to hide the incorrectly focused window.

Steps to reproduce:

  1. Open another application
  2. Open Mission Control
  3. Select the Godot application

git-brandon avatar Mar 10 '19 18:03 git-brandon

Is this still reproducible in the latest 3.2 builds?

akien-mga avatar Jan 14 '20 23:01 akien-mga

This does happen to me even on the latest build. Godot is not the only application that does this on my computer, but it is one of a handful (I can't remember which ones right now).

I'm guessing it's a macOS issue that happens for a group of applications to which Godot also belongs. I ran into this issue while searching for solutions and wanted to let you know. I'd be really happy if someone figured it out by any chance.

dogatekin avatar Aug 26 '20 21:08 dogatekin

This also happens to any exported Godot project

tavurth avatar Dec 23 '21 13:12 tavurth

Does anyone know what might be the entry point for digging into this issue?

I use Godot for quite a few custom built background apps now. When I swap apps it's regularly with three-fingers swipe-up to get to "Mission Control" then select the app.

This bug kills the ability for Godot to be used that way, I have to swipe up and then select two times.

If anyone has an idea of where to start looking, fixing this bug could save some frustration and allow a more native like experience.

tavurth avatar Apr 09 '22 23:04 tavurth

CC @godotengine/macos

akien-mga avatar Apr 12 '22 07:04 akien-mga

any update? facing exact same issue here.

afpro avatar Aug 12 '22 08:08 afpro

any update? facing exact same issue here.

As far as I know, nobody knows a solution to this issue yet.

Calinou avatar Aug 12 '22 13:08 Calinou

I experience this issue intermittently and it gets quite frustrating. Hopefully someday a fix is found. I attached a video in case that helps someone.

https://user-images.githubusercontent.com/28269330/186275130-9ffe2b0c-6eeb-4c77-bd36-ea85c05be7b9.mp4

ztc0611 avatar Aug 23 '22 22:08 ztc0611

cc @bruvzg

Calinou avatar Aug 23 '22 22:08 Calinou

Always happen to me when I CMD+TAB back into Godot, I always need to do it twice because the first time, it goes back to the last app that was on screen. It's similar to @ztc0611's video but with the main Godot window. It is so annoying and yet so hard to explain and/or debug...

tbergeron avatar Aug 28 '22 10:08 tbergeron

@tbergeron Yeah its very weird for me, sometimes it does what you describe and sometimes it does what happens in my posted video. I've been trying to find a pattern of what causes it and as of yet haven't. Pico-8 has the same problem.

ztc0611 avatar Aug 28 '22 15:08 ztc0611

Not only the editor, even the 'play' window has this bug too. Not sure whether exported mac app still has this strange behaviour or not.

afpro avatar Aug 29 '22 08:08 afpro

Has anyone checked if this issue still occurs in the 4.0 alphas? It's not impossible that the refactors to how windows are handled accidentally fixed it. Might provide some inspiration of how to fix it for 3.x... or might show that a fix is basically impossible besides waiting for 4.

ztc0611 avatar Sep 06 '22 03:09 ztc0611

I'm still hitting this bug on 4.0 mono builds (havent tested regular yet)

ChrisAbra avatar Mar 09 '23 22:03 ChrisAbra

This definitely happens in 4.0 (from early betas to 4.0.2).

cridenour avatar Apr 06 '23 02:04 cridenour

Still happens.

ztc0611 avatar Apr 30 '23 20:04 ztc0611