News for hackers. Stuff that matters.
Re:Discord Inc. fined 800 000 euros by the CNIL, GDPR regula... by pjc50 on Thursday November 17, 2022 @10:51AM (#33640654)
This whole thing is making my head ache.

Pressing X or Alt-F4 sends WM_CLOSE to the window. By default this is converted to WM_DESTROY and closes the window. By default, an application with no more windows open will exit.

It's quite normal for applications to intercept WM_CLOSE, for example with a modal dialog of "Do you want to save your files?".

Over the past few years it has also become common for applications, including Microsoft Teams, to interpret "all windows closed" as "minimise to Systray". Microsoft also responded to increasing use of the systray by auto-hiding most apps in it.

The issue is not "minimise to systray" per se, it's "sending user voice when the user thought they'd closed all the windows".

(bonus stackoverflow: you can separate the behavior https://stackoverflow.com/questions/9788662/how-do-i-repurpo... )

Re:Discord Inc. fined 800 000 euros by the CNIL, GDPR regula... by LoganDark on Thursday November 17, 2022 @12:42PM (#33642638)
Discord's X button is implemented inside the webview and simply hides the window (to be revealed later by clicking the tray icon). It does not send WM_CLOSE or WM_DESTROY.

Alt+F4 is what actually closes the window, and in Discord's case, the entire rest of the app too.

Re:Discord Inc. fined 800 000 euros by the CNIL, GDPR regula... by 0xffff2 on Thursday November 17, 2022 @02:23PM (#33644213)
>Over the past few years it has also become common for applications, including Microsoft Teams, to interpret "all windows closed" as "minimise to Systray".

More like the past few decades. Seriously, this has been a thing (usually configurable in app settings, and common in many long-running applications like messengers and music players) for as long as I can remember.