frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Ultrathin business card runs a fluid simulation

https://github.com/Nicholas-L-Johnson/flip-card
376•wompapumpum•3h ago•86 comments

HorizonDB, a geocoding engine in Rust that replaces Elasticsearch

https://radar.com/blog/high-performance-geocoding-in-rust
68•j_kao•2h ago•15 comments

Getting Good Results from Claude Code

https://www.dzombak.com/blog/2025/08/getting-good-results-from-claude-code/
37•ingve•1h ago•27 comments

The Rise of Ritual Features: Why Platforms Are Adding Daily Puzzle Games

https://productpickle.online/2025/07/20/ritual-features-the-quiet-strategy-behind-daily-puzzle-games-on-linkedin-and-beyond/
32•pkancharla•1h ago•23 comments

Astronomy Photographer of the Year 2025 shortlist

https://www.rmg.co.uk/whats-on/astronomy-photographer-year/galleries/2025-shortlist
7•speckx•52m ago•0 comments

GPT-5

https://openai.com/gpt-5/
1929•rd•22h ago•2296 comments

Window Activation

https://blog.broulik.de/2025/08/on-window-activation/
99•LorenDB•4d ago•43 comments

Linear sent me down a local-first rabbit hole

https://bytemash.net/posts/i-went-down-the-linear-rabbit-hole/
308•jcusch•9h ago•128 comments

What Does Consulting Do?

https://www.nber.org/papers/w34072
17•surprisetalk•1h ago•8 comments

Food, housing, & health care costs are a source of major stress for many people

https://apnorc.org/projects/food-housing-and-health-care-costs-are-a-source-of-major-stress-for-many-people/
173•speckx•2h ago•224 comments

Telefon Hírmondó: Listen to news and music electronically, in 1893

https://en.wikipedia.org/wiki/Telefon_H%C3%ADrmond%C3%B3
24•csense•3d ago•3 comments

Show HN: Trayce – “Burp Suite for developers”

https://trayce.dev?resubmit=hn
30•ev_dev3•1d ago•6 comments

Show HN: Synchrotron, a real-time DSP engine in pure Python

https://synchrotron.thatother.dev/
14•andromedaM31•2h ago•0 comments

How Attention Sinks Keep Language Models Stable

https://hanlab.mit.edu/blog/streamingllm
67•pr337h4m•6h ago•15 comments

Flipper Zero dark web firmware bypasses rolling code security

https://www.rtl-sdr.com/flipperzero-darkweb-firmware-bypasses-rolling-code-security/
410•lq9AJ8yrfs•18h ago•238 comments

Historical Tech Tree

https://www.historicaltechtree.com/
457•louisfd94•19h ago•102 comments

Show HN: Aha Domain Search

https://www.ahadomainsearch.com/
6•slig•3d ago•4 comments

Complex Iterators Are Slow

https://caolan.uk/notes/2025-07-31_complex_iterators_are_slow.cm
20•todsacerdoti•4d ago•8 comments

Exit Tax: Leave Germany before your business gets big

https://eidel.io/exit-tax-leave-germany-before-your-business-gets-big/
320•olieidel•21h ago•403 comments

Cursor CLI

https://cursor.com/cli
341•gonzalovargas•18h ago•233 comments

Supreme Court Prepares to End Voting Rights as We Know Them

https://www.motherjones.com/politics/2025/08/voting-rights-act-supreme-court-2/
28•grepcat•1h ago•2 comments

GPT-5: Key characteristics, pricing and system card

https://simonwillison.net/2025/Aug/7/gpt-5/
588•Philpax•21h ago•255 comments

FLUX.1-Krea and the Rise of Opinionated Models

https://www.dbreunig.com/2025/08/04/the-rise-of-opinionated-models.html
43•dbreunig•3d ago•17 comments

OpenAI's new open-source model is basically Phi-5

https://www.seangoedecke.com/gpt-oss-is-phi-5/
356•emschwartz•20h ago•190 comments

What Is Popover=Hint?

https://una.im/popover-hint/
39•speckx•4d ago•10 comments

The BLS Can't Be Replaced by the Private Sector

https://www.bloomberg.com/opinion/articles/2025-08-08/the-bls-can-t-be-replaced-by-the-private-sector
80•petethomas•2h ago•73 comments

GPT-5 for Developers

https://openai.com/index/introducing-gpt-5-for-developers
439•6thbit•22h ago•249 comments

Virtual Linux Devices on ARM64

https://underjord.io/500-virtual-linux-devices-on-arm64.html
36•lawik•4d ago•3 comments

A love letter to my future employer (2020)

https://catzkorn.dev/blog/love-letter/
49•luu•9h ago•12 comments

Turn any website into an API

https://www.parse.bot
62•pcl•10h ago•19 comments
Open in hackernews

Window Activation

https://blog.broulik.de/2025/08/on-window-activation/
97•LorenDB•4d ago

Comments

zb3•3h ago
Umm.. thanks to this logic I had to write an extension just so I could open firefox using a keystroke, because otherwise the browser did not receive focus..
wilkystyle•2h ago
Trade-offs abound, but this sounds amazing to me. I already have hotkeys to instantly switch between browser/terminal/Emacs/etc., so it's not an issue for me. What is an issue is some other application stealing focus while I'm typing elsewhere and (as another commenter mentioned) accidentally pressing space or some other key that performs an action in whatever pop-up or application stole the focus.
johnisgood•1h ago
You should have focused more! /s /pun intended

But yeah, it has happened to me too, too often for it to be a problem. Especially the press the space bit.

I am not sure this is the right solution, however, but I cannot think of any solution right now.

Someone (in the comments) who has claimed to patch i3 may shed some light on what he did.

antnisp•1h ago
I just checked and assigning the shortcut in "System Settings>Keyboard>Shortcuts" will open Firefox and put it in focus.
zb3•1h ago
For me in GNOME on Fedora this only works for chromium, for firefox I had to make an extension - I don't know why.
nh2•2h ago
This mechanism sounds worth it.

So many times on X11 do I type some chat message, and then some popup from another program comes up, which I accidentally confirm by my typing containing a space which presses the confirmation button, and I don't even know what the popup was.

Or my password being typed in a popup.

I once patched some code into i3 to prevent this for myself, but it wasn't a clean solution.

webdevver•2h ago
the pragmatic thing to do is just let the Free Market decide. as far as i understand, windows just lets apps grab whatever window they want, whatever input they want, right? and everything Just Works(tm). app writers are discouraged to make things too clever by virtue of users having the choice of not using the app in question.

why cant linux guys just... copy windows?

android-ifying this space with permissions, channels, protocols etc, and pretending that apps are insecure is adding friction that benefits nobody imo.

LorenDB•1h ago
Sometimes I type a password into one window, only to have another window pop up partway through and eat the rest of my input. This is why we need to prevent unintentional window activation.
Linkd•1h ago
This happens so rarely, that it makes the UX impact to the every day user not worth it in my opinion.
Barbing•31m ago
Fellow macOS users: is this rare for you as well?

Maybe an auto-updater will do this, and if it happened with any frequency I might disable those autoupdates and try a macro-based (e.g. Keyboard Maestro) solution.

bloomca•52m ago
It is relatively easy to replicate if you open 2 apps and start typing in the first one which opened, both on macOS and Windows (I don't use Linux enough to notice this issue).

A proper solution is probably faster startup times, but overall it pretty much never happens? Idk maybe I'm lucky or just conditioned to ignore it.

j1elo•1h ago
> windows just lets apps grab whatever window they want [...] and everything Just Works

Not really, as proven by the amount of searches with "Windows 11 disable focus stealing" (and ensuing frustration after seeing that it's not a simple toggle somewhere in the Settings) that I've done over time, and confirmed with so many coworkers over the years that we'd like to disable it.

Windows in particular and computers in general, work as they do, and people just adapt to it and sigh in frustration, assuming that things must be that way and there's nothing that can be done to change it. It's difficult to measure "Just Works" if there are no satisfaction surveys for each feature (also would be impractical). Focus stealing in particular is so ingrained in people's minds that I doubt many are even aware that it could work differently.

mathiaspoint•1h ago
It already works that way on X11.

Linux is already set up to handle this better than Windows actually since most apps are open source and abusive window management is likely to result in PRs.

pjmlp•1h ago
Someone has to actually accept and merge them.
mathiaspoint•1h ago
Not necessarily. The fork could get packaged instead if the users prefer it.
pjmlp•1h ago
As history has proven multiple times, most forks fail, after those that made them in first place lose interest keeping up with upstream, while others appreciate the fork as long as they aren't the ones actually doing the work.
pxc•48m ago
You're right, but it's not unusual for distro maintainers to carry patches for one or two removing an obnoxious behaviors for a long time.
burnt-resistor•1h ago
I can only barely appreciate or fathom the endless masochistic self-abuse of maintaining functional, useful semi-headless UI automation testing for various Linux distros.
dmart•1h ago
As a recent Linux (and Wayland) switcher, I love this behavior. It has always felt insane to me that macOS will just let some random auto-updater steal focus and eat your keystrokes while trying to work on something.
vbezhenar•1h ago
Powerful permissions are needed for powerful apps.

I don't know about this particular issue, but for example, KiCAD has multiple issues with wayland being overly protective: [0]. For example KiCAD needs the ability to move cursor to provide good user experience. KiCAD needs the ability to move and place windows wherever it likes. KiCAD needs to control focus. KiCAD needs to prevent OpenGL throttling on inactive windows. These issues led KiCAD developers to reduce support for Wayland configurations to a bare minimum.

So it's a delicate balance for operating systems to both allow powerful apps to implement complicated UI and to prevent badly written apps to do inconvenient things.

[0]: https://www.kicad.org/blog/2025/06/KiCad-and-Wayland-Support...

nottorp•1h ago
> KiCAD needs to control focus.

I don't know what KiCAD is, but it certainly does not need to control focus OS wide. Only between its own windows.

It's probably not KiCAD's fault that the windowing system doesn't work like that, but still...

suspended_state•1h ago
The page states:

> Unpredictable window focus behavior that can interrupt workflows

Which isn't exactly the same issue, so indeed it doesn't need to control focus.

nottorp•58m ago
That sounds like my problem with focus being stolen by random apps while i work :)
arghwhat•54m ago
s/KiCAD needs/KiCAD wants/

As a user of KiCAD, I have not found any need for it to automatically move cursors or windows around (nor do I even remember such behaviour pre-wayland, so it can't have been important), but note that the cursor-warp protocol is coming to allow the former, and window tags are coming to allow things like window placement restoration, which should help where this may benefit UX.

Technical note, OpenGL is for rendering, which is unrelated to presentation. Window managers and display servers have no part in that process. It's the Window System Integration (WSI) if used, such as EGL or Vulkan WSI, and in the old days GLX, that talk to the display server.

Wayland only provides an optional suggestion for when it is a good time for a window to render for good frame pacing, latency and performance without the app having a full proper frame scheduling implementation itself. The issue that tends to crop up is that EGL, a WSI often used with OpenGL in apps not using a toolkit, when specifically told to block and wait for next frame, has been internally implemented to use the optional suggestion which is not provided for invisible windows.

Stuff is being done to solve this, and it doesn't affect applications that do not ask to block on updates (say, firefox), nor applications leaving this up to a toolkit (say, Gtk or Qt) or just a different window system integration than EGL (which is extremely limited on its own anyway).

jchw•40m ago
Unfortunately the KiCAD messaging has been a bit messy. They list a spectrum of issues, some of which are very vague and also clearly issues with KiCAD (like "Application freezes and crashes: Instability issues specific to the Wayland environment" - unless the compositor is crashing I fail to see why you would assume KiCAD crashing is an issue with Wayland or your compositor.) On the other hand I don't really blame application developers for being frustrated in general, because a lot of us have been waiting a really long time to see Wayland issues get resolved, and the pace was so slow until recently that it basically felt like it would take an eternity for anything to get resolved. These days though, the pace is very fast, to the point where almost anything written about Wayland will be out of date in a couple of months, mostly for good reasons.

> KiCAD needs the ability to move cursor to provide good user experience.

Most applications are implementing pointer warping using pointer-constraints-unstable-v1. This lets you confine the pointer to a region, at which point you can use relative events to get movement, render the cursor yourself and do whatever you want. There is the locked_pointer_v1::set_cursor_position_hint function to allow one to set the location where the cursor should be released at when the constraint is lifted, which should make everything seamless.

And sure, it might actually be that pointer-constraints-unstable-v1 isn't enough for KiCAD's particular UX somehow, maybe they need pointer-warp-v1 or something even more advanced. However, applications generally don't need to set the mouse position to arbitrary locations on-screen at any time... That is a useful capability for something doing automation, but it should really not be needed for general application development.

> KiCAD needs the ability to move and place windows wherever it likes.

KiCAD isn't a window manager, it's a damn EDA tool. I do agree that Wayland needs to provide multi-window applications with better tools to hint to the compositor what to do with window placement and especially to save and restore window positions, but this doesn't translate to "applications need to be able to decide where exactly windows go." There is basically no behavior which literally requires this, and certainly no sane behavior that requires this.

Having every application perform its own sort of logic to decide where windows go is a mess everywhere it exists. It would be cleaner and better for users if we could just figure out what sorts of higher level tools applications need for good UX and try to build around that. In most cases merely being able to position windows relative to each-other is enough. (You can obviously do this in Wayland already to some extent, though I'm sure there are missing tools that are needed.)

On Wayland today, applications can't absolutely control window placement, or even know where they are on screen. There really isn't even a global window coordinate space to even leak to applications. It's a pretty radical departure from almost everything else, so yeah, application developers are obviously not thrilled about having to deal with it. But on the other hand, it's probably the right way to go. Just because ability to control absolute positions is convenient does not mean it is necessarily the right way to go, especially if you can provide higher level tools that encode intent better and let the user decide how your application's intent should be interpreted.

> KiCAD needs to control focus.

Honestly I have no clue what they're complaining about with focus. It's too vague.

If your application is in the foreground, you can grab an activation token and use it, so even with "extreme" focus protection, there should not be any issues with KiCAD being able to focus its own windows.

As for other software being able to focus itself from KiCAD, well, this article describes how you do it. It's pretty straight-forward and it's not obvious how you would misuse it. Pretty sure the same protocol exists in X11 as well.

They're also talking about modals, which might be related to their complaints. The xdg-dialog-v1 protocol (supported in KDE 6.4, GNOME 48, and used by Qt 6.8+) gives applications the ability to mark dialogs as modals. It is a bit crazy that it took as long as it did for this to become supported by everything, but it did cross the finish line. On Ubuntu 25.04, for example, you should get GNOME 48 and Qt 6.8.

> KiCAD needs to prevent OpenGL throttling on inactive windows

OpenGL isn't throttled, it is stalled if the window is entirely occluded. You can now resolve this issue with the fifo-v1 protocol and Mesa 25.0 or newer. For example, Ubuntu 25.04 ships Mesa 25.x and GNOME 48 which has fifo-v1. fifo-v1 is also available in KDE as of 6.4.

This should give applications the frame pacing behavior that they want. It is possible to work around the issue to some degree, it's just annoying.

If KiCAD developers don't want to support Wayland because it's effort they'd rather spend on other shit then fine, XWayland should mostly continue to work as-expected anyways. Best option for now is to force KiCAD to use X11, like Krita does. I'm sure that's not a 100% panacea but it should be good enough especially if KiCAD is so buggy on Wayland that it actively crashes.

anonym29•1h ago
>It has always felt insane to me that macOS and Windows will both just let some random auto-updater steal focus and eat your keystrokes while trying to work on something

What's so crazy about that? Windows and Mac OS are already functionally spyware posing as operating systems, as Microsoft and Apple are functionally intelligence agency partners posing as private corporations.

eddythompson80•50m ago
Wait, you can do that in X11 too... Is X11 spyware??? I know there is xeyes.. Is it..
Pesthuf•10m ago
…if that was the reason, why would the operating systems give other applications the right to steal focus and record keystrokes? They control the kernel, they don’t need that.
dataflow•43m ago
> It has always felt insane to me that macOS and Windows will both just let some random auto-updater steal focus and eat your keystrokes while trying to work on something.

Wait, what? Hasn't Windows prevented focus stealing for literally decades at this point?

https://devblogs.microsoft.com/oldnewthing/20090220-00/?p=19...

dmart•33m ago
Ah, that may be the case - I’ll edit my comment. I was primarily using macOS before this so I may have misremembered the Windows behavior.
jenscow•29m ago
An app can still steal focus with `uiAccess=true` in the app manifest's execution level (and the app is signed).
nottorp•1h ago
I don't understand who historically has thought it's a good idea to allow applications to steal focus in the first place. It should be the window manager's decision, and the window manager should only switch focus if the user decides that.
guardian5x•1h ago
Well, sometimes the user expects the focus to shift, like the example mentioned when you click a link in one application and your browser in the background should come into focus when it opens a new tab. Some applications just decide to steal focus when the user does not expect it, and that is the problem.
nottorp•1h ago
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 they'll grab it for a stupid window telling you to update the browser or what new features no one cares about they introduced.

I'd prefer to have to switch focus to the browser manually than have the stupid ubuntu update manager steal focus when i'm typing in the terminal...

elehack•15m ago
The article is about a mechanism for the OS to validate focus requests. The application with the link requests a focus token, and passes it to the browser along with the open-link request, and the browser can then request focus.

It isn't perfect, because there's no way to know that the browser isn't using the token to request focus for something else, but maintaining and validating chain of custody for focus across applications is exactly the problem it looks like they are working on solving.

Ukv•13m ago
> 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.

sho_hn•1h ago
Earlier discussion with comments from devs https://news.ycombinator.com/item?id=44784312
rs186•33m ago
Clicked the article because my blurry eyes read "on Windows Activation", and I was like "huh, what's interesting about Windows activation?"

Read the first paragraph and it was really confusing. Still the same after reading it again.

Until I looked at the title. Oh, window activation is what we are actually talking about.

andrewmcwatters•28m ago
I too was hoping for something like a deep dive into key management reverse engineering. lol
jovial_cavalier•32m ago
Stealing focus is possible in X11, but the window manager needs to implement it. For instance, my dwm build does not refocus for any reason other than the user moving the mouse or pressing a key
rekabis•32m ago
This title seems click-baity, as the term is most frequently used for registering Windows. That was my curiosity when I clicked through. I somehow doubt it would have gotten as many clicks had it been “Window Focus”.
andrewmcwatters•29m ago
It's not just windows that I love popping up in my face actively! interrupting what I'm doing, but also ones that have autofocus elements, doubly stealing my attention and not having a debounce for ignoring actions, as others here have mentioned.

Type-type-type...HEY THIS APPLICATION HAS SOME UPDATES HERES A CHANGEL-keypress closes window

I wanted to read that, damn it!

treve•22m ago
Great idea, but pretty painful at the moment. I guess not everything uses this protocol yet, so I often can't find (for example) my password pops under other windows. Hoping this gets a bit better over time, it's one of the last remaining Wayland pains.