Re: [hatari-devel] prevent alt-f4 from closing Hatari on Windows

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Le 03/01/2018 à 08:09, Thomas Huth a écrit :
On 02.01.2018 18:08, Nicolas Pomarède wrote:
Hi

under Windows alt-f4 will close the program.

As reported by DMA-SC this can be a problem when some ST programs use
alt+F4 as a shortcut (for example maxYMizer uses alt-f4 as a shortcut
when composing music).

I found that SDL 2.0.4 added SDL_HINT_WINDOWS_NO_CLOSE_ON_ALT_F4 to
prevent a CLOSE to be sent to the main program.

Should we add an option to Hatari to support this ? As a choice in the
UI or just as a parameter and a config file option ?

I think I'd rather enable it permanently, without config option.

Hi

I added it directly for now, we can still add an option later if needed.

Also DMA-SC confirmed me that this correctly disabled alt-f4 under Windows and this won't close Hatari anymore.

Nicolas




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/