frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Why does macOS still lack focus stealing prevention in 2025?

4•joshuak•17h ago
Been dealing with this forever and finally went down the rabbit hole to understand it properly.

  The issue: macOS lets any app steal your keyboard focus whenever it wants. Technically, apps just call [NSApp activateIgnoringOtherApps:YES] and boom - your keystrokes are going somewhere else.

  Why I care:
  - I've typed passwords into the wrong window more than once
  - Constant interruptions kill flow
  - VoiceOver users have it way worse - they lose their whole navigation context

  Here's the frustrating part: this has been solved everywhere else for ages. Windows added ForegroundLockTimeout back in XP (2001). X11 window managers have had this forever. GNOME and KDE have had settings for it for decades. There's literally a Wikipedia article about it: https://en.wikipedia.org/wiki/Focus_stealing

  Jeff Atwood nailed it back in 2007: "Stealing focus from the user is never acceptable."

  I've tried everything - defaults write tricks, Hammerspoon scripts, random third-party apps. Nothing works reliably.

  All we need is one checkbox in System Settings. Apps that want attention bounce in the Dock instead of hijacking your keyboard. That's it.

  The accessibility angle is what gets me - Apple talks a big game about accessibility, but this is a real gap. What's a 2-second annoyance for me is a 30+ second disruption for screen reader users.

  Filed feedback (FB21568202). Curious if anyone's found workarounds that actually stick.

Comments

bigyabai•17h ago
I'm not sure, but if you've reached the point that you're sending AI-generated pleas to the community then you might as well switch to Linux or Windows.
joshuak•16h ago
Thanks for your "not sure" comment. Very helpful. Perhaps I'm mistaken but I thought the formatting would make it more legible and scannable. I can see why that might come across as AI generated, but it isn't. I did use AI to reduce the formatting just now though. Do you find this more or less objectionable?
alphadatavault•17h ago
This is a perfect example of the tension between Apple’s HIG (which explicitly discourages focus stealing) and the actual implementation of AppKit. activateIgnoringOtherApps:YES is effectively a "selfish" API—it assumes the developer's intent is more important than the user's current context.

The fact that we have to rely on Hammerspoon or defaults write hacks in 2026 is a testament to the "black box" nature of WindowServer. It’s one of the few areas where macOS feels significantly less mature than Linux/X11, where "Focus Stealing Prevention" has been a standard toggle for decades.

al_borland•17h ago
WebEx is very guilty of this any time sharing is invoked or changes hands.

I usually just curse at it and call it names.

joshuak•16h ago
This is the problem I suspect. I think it has a negative impact on tons of users but people just curse and move on.
al_borland•16h ago
One of the big problems for me is that my company installs all kind of nonsense for security that makes the whole system behave strangely. For example, when I click on a window to activate it, it will often jump across the screen. In over 20 years on the Mac, I’ve never experienced this on my personal system. However, it happens almost every day at work. The hard drive on my desktop also randomly disappears and reappears, but only on the work Mac, and it’s happened constantly, everyday, for 6 years. It’s probably JAMF, but I can’t do anything about it. There is a bit of learned helplessness when dealing with my work Mac.

Most of my focus issues are at work, so I have no idea what is a macOS issue and what is an issue with the stuff the company installed.

On my personal Mac and phone, I submit feedback to Apple all the time when things annoy me, since those issues are more clear cut.

daviddever23box•16h ago
Windows may not steal your keyboard focus, but it will block the very thing you're trying to do with useless dialogue boxes.

Notifications should be non-blocking. ALWAYS.

Making Tools Developers Actually Use – Michiel Borkent [video]

https://www.youtube.com/watch?v=119qVkHxPkM
1•adityaathalye•2m ago•0 comments

Ask HN: Why is Claude Code so cheap?

1•figassis•3m ago•0 comments

My Blessed Setup for Public Bookmarks

https://incoherenceofthe.net/blog/links.xml
1•pkal•6m ago•0 comments

Ask HN: How to stay relevant in the age of AI?

1•snow_mac•6m ago•0 comments

Google Guys Say Bye to California

https://www.nytimes.com/2026/01/09/technology/google-founders-california-wealth-tax.html
1•fleahunter•7m ago•0 comments

Latest SteamOS Beta Now Includes Ntsync Kernel Driver

https://www.phoronix.com/news/Steam-OS-Beta-NTSYNC
1•LorenDB•7m ago•0 comments

By 2030, 80% of Internet Traffic Will Be Agent-to-Service

https://www.silasreinagel.com/ai/agents/web/technology/future/2026/01/08/web-pages-are-not-the-fu...
2•SilasReinagel•10m ago•0 comments

Cloudspecs: Cloud Hardware Evolution Through the Looking Glass

http://muratbuffalo.blogspot.com/2026/01/cloudspecs-cloud-hardware-evolution.html
2•speckx•11m ago•0 comments

Boston Dynamics and Google DeepMind partners on AI-powered Atlas robots

https://scienceclock.com/boston-dynamics-google-deepmind-atlas-robots/
1•akg130522•12m ago•1 comments

Ask HN: How do you handle the quantity of AI content in your feeds?

1•jbms•14m ago•0 comments

Research finds women use generative AI less, due to moral concerns

https://www.unite.ai/research-finds-women-use-generative-ai-less-due-to-moral-concerns/
1•binning•15m ago•0 comments

Show HN: I built a free platform for calculators, generators and quizzes

https://ournethelps.com/
1•sanjeevkumardev•15m ago•1 comments

DHS Invokes Immigration Enforcement to Justify Gathering Americans' DNA

https://reason.com/2026/01/09/dhs-invokes-immigration-enforcement-to-justify-gathering-americans-...
6•pseudolus•16m ago•1 comments

Show HN: BuildFix– Semantic feature-extraction transfer between TypeScript repos

https://www.buildfix.dev/
1•RichBennett•17m ago•0 comments

Chemics – Python package for chemical engineering

https://github.com/wigging/chemics
1•nateb2022•19m ago•0 comments

Sodium-Ion Batteries Can Charge Faster Than Lithium-Ion Ones

https://www.tus.ac.jp/en/mediarelations/archive/20251217_7418.html
1•phyzix5761•20m ago•0 comments

Dyalog and AI // Stefan Kruger // DYNA Fall 2025 [video]

https://www.youtube.com/watch?v=H_wdKeJ8gt4
1•pillowshift•21m ago•1 comments

Show HN: CLIs Are All You Need for Agents

https://github.com/caesarnine/binsmith
1•binalpatel•22m ago•0 comments

Common food preservatives linked to cancer and type 2 diabetes

https://www.cnn.com/2026/01/07/health/food-preservatives-cancer-diabetes-wellness
1•koolhead17•23m ago•2 comments

3D-printed PCB made with liquid metal and PVA

https://www.tomshardware.com/3d-printing/3d-printed-pcb-made-with-pva-and-liquid-metal-is-fully-r...
2•r-bt•24m ago•0 comments

Deep Learning for Molecules and Materials

https://dmol.pub/index.html
1•abracos•26m ago•0 comments

Answer Set Programming (2019) [pdf]

https://www.cs.utexas.edu/~vl/teaching/378/ASP.pdf
1•todsacerdoti•26m ago•0 comments

Name That Part: 3D Part Segmentation and Naming

https://arxiv.org/abs/2512.18003
2•unisub_guy•28m ago•0 comments

Show HN: See how LLM providers will make money off of you

1•boh•28m ago•0 comments

Developers Are Solving the Wrong Problem

https://caseysoftware.com/blog/developers-are-solving-the-wrong-problem
1•speckx•29m ago•0 comments

Inlining – The Ultimate Optimisation

https://xania.org/202512/17-inlining-the-ultimate-optimisation
2•PaulHoule•29m ago•0 comments

AI Models Are Starting to Learn by Asking Themselves Questions

https://www.wired.com/story/ai-models-keep-learning-after-training-research/
1•ryan_j_naughton•29m ago•0 comments

Using and Managing Consents in an Express App (2023)

https://fusionauth.io/blog/consents-example
1•mooreds•30m ago•0 comments

McDonald's job post mention that you should lift up to 50 lbs as Qualifications

https://www.indeed.com/jobs?q=usa+tech&vjk=0fb6a6b75fcbfe00
1•danver0•30m ago•3 comments

Show HN: Fart Map

https://fart.mp
1•julien421•31m ago•0 comments