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

> Yes but there's no way for the OS to know if the focus request is legitimate, is there? Can't even say "browsers are allowed to grab focus" because [...]

To my understanding, the approach described in the article is that the currently active program requests a token and then passes that along to the program that it wants to take focus. Compositor can also check what triggered the request (mouse click? global keybind?) to decide if the request is legitimate.

That seems reasonable to me, opposed to requiring the user to switch over to a new window every time they `right click -> show in file browser` a file in their IDE, or after they press a hotkey to open a screenshot tool, or so on.





> Compositor can also check what triggered the request (mouse click? global keybind?) to decide if the request is legitimate.

That's what I'm dubious about. But I haven't look at the details ofc.




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

Search: