openMSX / debugger

31 stars 15 forks source link

Disappearing child windows on macOS #149

Closed sdsnatcher closed 1 year ago

sdsnatcher commented 1 year ago

The child windows opened by the debugger have an annoying behavior on macOS: all of them disappear when the application loses the focus.

This makes the activity of comparing their contents with another app an unnecessary gymnastic of refocusing and window hunting.

This behavior seem to be caused by the QT::Tool flag being applied to such windows. But such behavior is rarely done on native macOS apps, and in the very few cases I could find, those were not windows that hold content, but only things like tool pallets.

Since the debugger doesn't have such type of tool pallets, please disable the QT::Tool flag for all child windows since they hold content that must be seen when the App looses its focus.

Or, if there's anyone that actually like such behavior, at least add an option to enable/disable such behavior in the preferences.

pvmm commented 1 year ago

b6509f35b94d7f7b8ec71dd0408ba7d032d3705e as inspiration.

pvmm commented 1 year ago

I guess #154 fixes this.

sdsnatcher commented 1 year ago

From what I tested, #154 satisfactorily fixes the problem. I'll try to close the issue.