Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Except for Discord, which actually closes the entire application on Alt-F4 instead of just the window.


Huh. You are right. Alt+F4 closes the application, clicking the X closes the window. Kinda inconsistent.


Alt+F4 closes the window, clicking the X causes the window to hide, not close.


Alt-F4 invokes different processes than the X button does. The X button is more akin to CTRL-F4.


Nah, they both send WM_CLOSE to the window. The actual problem is that Discord uses its own non-native window frame and reimplements the X button differently than they handle the actual close event.


Alt-F4 closes the window for me on Discord, not the app. There's a setting for that I suppose.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: